Database
Object Hierarchy:
Description:
public class Database : Object, Initable
This class is a thin wrapper around SQLite's database object.
It adds statement preparation based on GValue and a cancellable exec function.
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public void analyze ()
Analyze triggers of database
- public void begin () throws DatabaseError
Start a transaction
- public void commit () throws DatabaseError
Commit a transaction
- public void exec (string sql, Value[]? arguments = null) throws DatabaseError
Simple SQL query execution function.
- public Cursor exec_cursor (string sql, Value[]? arguments = null) throws DatabaseError
SQL query function.
- public bool init (Cancellable? cancellable = null) throws Error
Initialize database. Implemented for Initiable interface.
- public bool is_empty () throws DatabaseError
Check for an empty SQLite database.
- public int query_value (string sql, Value[]? args = null) throws DatabaseError
Execute a SQL query that returns a single number.
- public void rollback ()
Rollback a transaction
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.Initable