MidoriDatabaseStatement

MidoriDatabaseStatement

Functions

Types and Values

Object Hierarchy


Description

Functions

MIDORI_TYPE_DATABASE_STATEMENT

#define MIDORI_TYPE_DATABASE_STATEMENT (midori_database_statement_get_type ())

The type for MidoriDatabaseStatement.


midori_database_statement_init ()

gboolean
midori_database_statement_init (MidoriDatabaseStatement *self,
                                GCancellable *cancellable,
                                GError **error);

Parameters

self

the MidoriDatabaseStatement instance

 

cancellable

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_statement_bind ()

void
midori_database_statement_bind (MidoriDatabaseStatement *self,
                                const gchar *pname,
                                GError **error,
                                ...);

Parameters

self

the MidoriDatabaseStatement instance

 

pname

 

 

...

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_statement_exec ()

gboolean
midori_database_statement_exec (MidoriDatabaseStatement *self,
                                GError **error);

Parameters

self

the MidoriDatabaseStatement instance

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_statement_step ()

gboolean
midori_database_statement_step (MidoriDatabaseStatement *self,
                                GError **error);

Parameters

self

the MidoriDatabaseStatement instance

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_statement_get_string ()

gchar *
midori_database_statement_get_string (MidoriDatabaseStatement *self,
                                      const gchar *name,
                                      GError **error);

Parameters

self

the MidoriDatabaseStatement instance

 

name

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_statement_get_int64 ()

gint64
midori_database_statement_get_int64 (MidoriDatabaseStatement *self,
                                     const gchar *name,
                                     GError **error);

Parameters

self

the MidoriDatabaseStatement instance

 

name

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_statement_get_double ()

gdouble
midori_database_statement_get_double (MidoriDatabaseStatement *self,
                                      const gchar *name,
                                      GError **error);

Parameters

self

the MidoriDatabaseStatement instance

 

name

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_statement_new ()

MidoriDatabaseStatement *
midori_database_statement_new (MidoriDatabase *database,
                               const gchar *query,
                               GError **error);

Parameters

database

 

 

query

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_statement_get_stmt ()

sqlite3_stmt *
midori_database_statement_get_stmt (MidoriDatabaseStatement *self);

Get and return the current value of the "stmt" property.

Parameters

self

the MidoriDatabaseStatement instance to query

 

Returns

the value of the "stmt" property


midori_database_statement_get_database ()

MidoriDatabase *
midori_database_statement_get_database
                               (MidoriDatabaseStatement *self);

Get and return the current value of the "database" property.

Parameters

self

the MidoriDatabaseStatement instance to query

 

Returns

the value of the "database" property


midori_database_statement_set_database ()

void
midori_database_statement_set_database
                               (MidoriDatabaseStatement *self,
                                MidoriDatabase *value);

Set the value of the "database" property to value .

Parameters

self

the MidoriDatabaseStatement instance to modify

 

value

the new value of the "database" property

 

midori_database_statement_get_query ()

const gchar *
midori_database_statement_get_query (MidoriDatabaseStatement *self);

Get and return the current value of the "query" property.

Parameters

self

the MidoriDatabaseStatement instance to query

 

Returns

the value of the "query" property


midori_database_statement_set_query ()

void
midori_database_statement_set_query (MidoriDatabaseStatement *self,
                                     const gchar *value);

Set the value of the "query" property to value .

Parameters

self

the MidoriDatabaseStatement instance to modify

 

value

the new value of the "query" property

 

MIDORI_TYPE_DATABASE

#define MIDORI_TYPE_DATABASE (midori_database_get_type ())

The type for MidoriDatabase.


midori_database_init ()

gboolean
midori_database_init (MidoriDatabase *self,
                      GCancellable *cancellable,
                      GError **error);

Parameters

self

the MidoriDatabase instance

 

cancellable

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_attach ()

gboolean
midori_database_attach (MidoriDatabase *self,
                        const gchar *path,
                        const gchar *alias,
                        GError **error);

Parameters

self

the MidoriDatabase instance

 

path

 

 

alias

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_exec_script ()

gboolean
midori_database_exec_script (MidoriDatabase *self,
                             const gchar *filename,
                             GError **error);

Parameters

self

the MidoriDatabase instance

 

filename

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_exec ()

gboolean
midori_database_exec (MidoriDatabase *self,
                      const gchar *query,
                      GError **error);

Parameters

self

the MidoriDatabase instance

 

query

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_prepare ()

MidoriDatabaseStatement *
midori_database_prepare (MidoriDatabase *self,
                         const gchar *query,
                         GError **error,
                         ...);

Parameters

self

the MidoriDatabase instance

 

query

 

 

...

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_new ()

MidoriDatabase *
midori_database_new (const gchar *path,
                     GError **error);

Parameters

path

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains MidoriDatabaseError]

midori_database_get_db ()

sqlite3 *
midori_database_get_db (MidoriDatabase *self);

Get and return the current value of the "db" property.

Parameters

self

the MidoriDatabase instance to query

 

Returns

the value of the "db" property


midori_database_get_path ()

const gchar *
midori_database_get_path (MidoriDatabase *self);

Get and return the current value of the "path" property.

Parameters

self

the MidoriDatabase instance to query

 

Returns

the value of the "path" property


midori_database_set_path ()

void
midori_database_set_path (MidoriDatabase *self,
                          const gchar *value);

Set the value of the "path" property to value .

Parameters

self

the MidoriDatabase instance to modify

 

value

the new value of the "path" property

 

midori_database_get_first_use ()

gboolean
midori_database_get_first_use (MidoriDatabase *self);

Get and return the current value of the "first-use" property.

Parameters

self

the MidoriDatabase instance to query

 

Returns

the value of the "first-use" property


midori_database_set_first_use ()

void
midori_database_set_first_use (MidoriDatabase *self,
                               gboolean value);

Set the value of the "first-use" property to value .

Parameters

self

the MidoriDatabase instance to modify

 

value

the new value of the "first-use" property

 

Types and Values

struct MidoriDatabaseStatement

struct MidoriDatabaseStatement {
	GObject parent_instance;
	MidoriDatabaseStatementPrivate * priv;
	sqlite3_stmt* _stmt;
};

struct MidoriDatabaseStatementClass

struct MidoriDatabaseStatementClass {
	GObjectClass parent_class;
	gboolean (*init) (MidoriDatabaseStatement* self, GCancellable* cancellable, GError** error);
};

The class structure for MIDORI_TYPE_DATABASE_STATEMENT. All the fields in this structure are private and should never be accessed directly.

Members

GObjectClass parent_class;

the parent class structure

 

init ()

virtual method called by midori_database_statement_init()

 

struct MidoriDatabase

struct MidoriDatabase {
	GObject parent_instance;
	MidoriDatabasePrivate * priv;
	sqlite3* _db;
};

struct MidoriDatabaseClass

struct MidoriDatabaseClass {
	GObjectClass parent_class;
	gboolean (*init) (MidoriDatabase* self, GCancellable* cancellable, GError** error);
};

The class structure for MIDORI_TYPE_DATABASE. All the fields in this structure are private and should never be accessed directly.

Members

GObjectClass parent_class;

the parent class structure

 

init ()

virtual method called by midori_database_init()

 

enum MidoriDatabaseError

Members

MIDORI_DATABASE_ERROR_OPEN

   

MIDORI_DATABASE_ERROR_NAMING

   

MIDORI_DATABASE_ERROR_FILENAME

   

MIDORI_DATABASE_ERROR_EXECUTE

   

MIDORI_DATABASE_ERROR_COMPILE

   

MIDORI_DATABASE_ERROR_TYPE