Opaque synchronous connection object. More...
#include <libmongo-private.h>
Data Fields | |
| mongo_connection | super |
| The parent object. More... | |
| gboolean | slaveok |
| Whether queries against slave nodes are acceptable. More... | |
| gboolean | safe_mode |
| Safe-mode signal flag. More... | |
| gboolean | auto_reconnect |
| Auto-reconnect flag. More... | |
| struct { | |
| GList * seeds | |
| Replica set seeds, as a list of strings. More... | |
| GList * hosts | |
| Replica set members, as a list of strings. More... | |
| gchar * primary | |
| The replica master, if any. More... | |
| } | rs |
| Replica Set properties. More... | |
| gchar * | last_error |
| The last error from the server, caught during queries. More... | |
| gint32 | max_insert_size |
| Maximum number of bytes an insert command can be before being split to smaller chunks. More... | |
| struct { | |
| gchar * db | |
| The database to authenticate against. More... | |
| gchar * user | |
| The username to authenticate with. More... | |
| gchar * pw | |
| The password to authenticate with. More... | |
| } | auth |
| Authentication credentials. More... | |
Opaque synchronous connection object.
Synchronous connection object.
| struct { ... } mongo_sync_connection::auth |
Authentication credentials.
These are mlock()'ed.
| gboolean mongo_sync_connection::auto_reconnect |
Auto-reconnect flag.
| gchar* mongo_sync_connection::db |
The database to authenticate against.
| GList* mongo_sync_connection::hosts |
Replica set members, as a list of strings.
| gchar* mongo_sync_connection::last_error |
The last error from the server, caught during queries.
| gint32 mongo_sync_connection::max_insert_size |
Maximum number of bytes an insert command can be before being split to smaller chunks.
Used for bulk inserts.
| gchar* mongo_sync_connection::primary |
The replica master, if any.
| gchar* mongo_sync_connection::pw |
The password to authenticate with.
| struct { ... } mongo_sync_connection::rs |
Replica Set properties.
| gboolean mongo_sync_connection::safe_mode |
Safe-mode signal flag.
| GList* mongo_sync_connection::seeds |
Replica set seeds, as a list of strings.
| gboolean mongo_sync_connection::slaveok |
Whether queries against slave nodes are acceptable.
| mongo_connection mongo_sync_connection::super |
The parent object.
| gchar* mongo_sync_connection::user |
The username to authenticate with.
1.8.5