syslog-ng source
AFSqlDestDriver Struct Reference

#include <afsql.h>

Collaboration diagram for AFSqlDestDriver:

Public Attributes

LogThreadedDestDriver super
 
gchar * type
 
gchar * host
 
gchar * port
 
gchar * user
 
gchar * password
 
gchar * database
 
gchar * encoding
 
gchar * create_statement_append
 
GList * columns
 
GList * values
 
GList * indexes
 
LogTemplate * table
 
gint fields_len
 
AFSqlFieldfields
 
gchar * null_value
 
gchar * quote_as_string
 
gboolean ignore_tns_config
 
GList * session_statements
 
LogTemplateOptions template_options
 
GHashTable * dbd_options
 
GHashTable * dbd_options_numeric
 
dbi_conn dbi_ctx
 
gchar * dbi_driver_dir
 
GHashTable * syslogng_conform_tables
 
guint32 failed_message_counter
 
gboolean transaction_active
 

Detailed Description

AFSqlDestDriver:

This structure encapsulates an SQL destination driver. SQL insert statements are generated from a separate thread because of the blocking nature of the DBI API. It is ensured that while the thread is running, the reference count to the driver structure is increased, thus the db thread can read any of the fields in this structure. To do anything more than simple reading out a value, some kind of locking mechanism shall be used.

Member Data Documentation

◆ columns

GList* AFSqlDestDriver::columns

◆ create_statement_append

gchar* AFSqlDestDriver::create_statement_append

◆ database

gchar* AFSqlDestDriver::database

◆ dbd_options

GHashTable* AFSqlDestDriver::dbd_options

◆ dbd_options_numeric

GHashTable* AFSqlDestDriver::dbd_options_numeric

◆ dbi_ctx

dbi_conn AFSqlDestDriver::dbi_ctx

◆ dbi_driver_dir

gchar* AFSqlDestDriver::dbi_driver_dir

◆ encoding

gchar* AFSqlDestDriver::encoding

◆ failed_message_counter

guint32 AFSqlDestDriver::failed_message_counter

◆ fields

AFSqlField* AFSqlDestDriver::fields

◆ fields_len

gint AFSqlDestDriver::fields_len

◆ host

gchar* AFSqlDestDriver::host

◆ ignore_tns_config

gboolean AFSqlDestDriver::ignore_tns_config

◆ indexes

GList* AFSqlDestDriver::indexes

◆ null_value

gchar* AFSqlDestDriver::null_value

◆ password

gchar* AFSqlDestDriver::password

◆ port

gchar* AFSqlDestDriver::port

◆ quote_as_string

gchar* AFSqlDestDriver::quote_as_string

◆ session_statements

GList* AFSqlDestDriver::session_statements

◆ super

LogThreadedDestDriver AFSqlDestDriver::super

◆ syslogng_conform_tables

GHashTable* AFSqlDestDriver::syslogng_conform_tables

◆ table

LogTemplate* AFSqlDestDriver::table

◆ template_options

LogTemplateOptions AFSqlDestDriver::template_options

◆ transaction_active

gboolean AFSqlDestDriver::transaction_active

◆ type

gchar* AFSqlDestDriver::type

◆ user

gchar* AFSqlDestDriver::user

◆ values

GList* AFSqlDestDriver::values

The documentation for this struct was generated from the following file: