| Top |  |  |  |  | 
| #define | GOM_ADAPTER_CONST() | 
| void | (*GomAdapterCallback) () | 
| gboolean | gom_adapter_close_sync () | 
| void | gom_adapter_close_async () | 
| gboolean | gom_adapter_close_finish () | 
| gpointer | gom_adapter_get_handle () | 
| GomAdapter * | gom_adapter_new () | 
| gboolean | gom_adapter_open_sync () | 
| void | gom_adapter_open_async () | 
| gboolean | gom_adapter_open_finish () | 
| void | gom_adapter_queue_read () | 
| void | gom_adapter_queue_write () | 
| gboolean | gom_adapter_execute_sql () | 
#define GOM_ADAPTER_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOM_TYPE_ADAPTER, GomAdapter const))
void gom_adapter_close_async (GomAdapter *adapter,GAsyncReadyCallback callback,gpointer user_data);
gboolean gom_adapter_close_finish (GomAdapter *adapter,GAsyncResult *result,GError **error);
gpointer
gom_adapter_get_handle (GomAdapter *adapter);
Fetches the sqlite3 structure used by the adapter.
gboolean gom_adapter_open_sync (GomAdapter *adapter,const gchar *uri,GError **error);
void gom_adapter_open_async (GomAdapter *adapter,const gchar *uri,GAsyncReadyCallback callback,gpointer user_data);
Opens the database pointed to by uri
. uri
 can be in any format understood
by SQLite. See http://www.sqlite.org/c3ref/open.html
for details.
| adapter | ||
| uri | a URI understood by SQLite | |
| callback | the function to call when the operation finished, or  | |
| user_data | the user data to pass to the callback function | 
gboolean gom_adapter_open_finish (GomAdapter *adapter,GAsyncResult *result,GError **error);
void gom_adapter_queue_read (GomAdapter *adapter,GomAdapterCallback callback,gpointer user_data);
Queues a callback to be executed within the SQLite thread. The callback is expected to perform reads only.
| adapter | A GomAdapter. | [in] | 
| callback | A callback to execute read queries on SQLite. | [in][scope async] | 
| user_data | User data for  | [in] | 
void gom_adapter_queue_write (GomAdapter *adapter,GomAdapterCallback callback,gpointer user_data);
Queues a callback to be executed within the SQLite thwrite. The callback can perform reads and writes.
| adapter | A GomAdapter. | [in] | 
| callback | A callback to execute write queries on SQLite. | [in][scope async] | 
| user_data | User data for  | [in] | 
gboolean gom_adapter_execute_sql (GomAdapter *adapter,const gchar *sql,GError **error);
This is a helper function to make simple execution of SQL easier. It is primarily meant for things like "BEGIN;" and "COMMIT;".
This MUST be called from within a write transaction using
gom_adapter_queue_write().