23 #ifndef AFMONGODB_PRIVATE_H_
24 #define AFMONGODB_PRIVATE_H_
27 #if SYSLOG_NG_HAVE_MONGOC_V2
28 # include "mongoc/mongoc.h"
39 #if SYSLOG_NG_HAVE_DECL_BSON_APPEND_ARRAY_UNSAFE_BEGIN
40 # define BSON_APPEND_ARRAY_BEGIN_AUTOLEN(b, k, c) bson_append_array_unsafe_begin(b, k, -1, c)
42 # define BSON_APPEND_ARRAY_BEGIN_AUTOLEN(b, k, c) bson_append_array_begin(b, k, -1, c)
45 typedef struct _MongoDBDestDriver
64 mongoc_client_pool_t *
pool;
Definition: afmongodb-private.h:46
mongoc_client_pool_t * pool
Definition: afmongodb-private.h:64
LogThreadedDestDriver super
Definition: afmongodb-private.h:47
ValuePairs * vp
Definition: afmongodb-private.h:60
gboolean use_bulk
Definition: afmongodb-private.h:55
GString * uri_str
Definition: afmongodb-private.h:49
mongoc_uri_t * uri_obj
Definition: afmongodb-private.h:63
int32_t write_concern_level
Definition: afmongodb-private.h:58
LogTemplate * collection_template
Definition: afmongodb-private.h:50
gboolean bulk_bypass_validation
Definition: afmongodb-private.h:57
gboolean bulk_unordered
Definition: afmongodb-private.h:56
LogTemplateOptions template_options
Definition: afmongodb-private.h:53
const gchar * const_db
Definition: afmongodb-private.h:62
gboolean collection_is_literal_string
Definition: afmongodb-private.h:51