Gom.Adapter¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class Gom.Adapter(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new()¶
 - Return type:
 
- close_async(callback, *user_data)¶
 - Parameters:
 callback (
Gio.AsyncReadyCallbackorNone) –
- close_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) –- Raises:
 - Return type:
 
- close_sync()¶
 - Raises:
 - Return type:
 
- execute_sql(sql)¶
 - 
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(). 
- get_handle()¶
 - 
Fetches the sqlite3 structure used by the adapter.
 
- open_async(uri, callback, *user_data)¶
 - Parameters:
 
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.
- open_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) –- Raises:
 - Return type:
 
- queue_read(callback, *user_data)¶
 - Parameters:
 callback (
Gom.AdapterCallback) – A callback to execute read queries on SQLite.
Queues a callback to be executed within the SQLite thread. The callback is expected to perform reads only.
- queue_write(callback, *user_data)¶
 - Parameters:
 callback (
Gom.AdapterCallback) – A callback to execute write queries on SQLite.
Queues a callback to be executed within the SQLite thread. The callback can perform reads and writes.