23 #ifndef JULEA_DB_UTIL_SQL_GENERIC_H
24 #define JULEA_DB_UTIL_SQL_GENERIC_H
42 gboolean (*
statement_prepare)(gpointer db_connection,
const char*
sql, gpointer _stmt, GArray* types_in, GArray* types_out, GError** error);
46 gboolean (*
statement_step)(gpointer db_connection, gpointer _stmt, gboolean* found, GError** error);
48 gboolean (*
statement_reset)(gpointer db_connection, gpointer _stmt, GError** error);
50 gboolean (*
sql_exec)(gpointer db_connection,
const char*
sql, GError** error);
77 gboolean
sql_generic_update(gpointer
backend_data, gpointer _batch, gchar
const* name, bson_t
const* selector, bson_t
const* metadata, GError** error);
79 gboolean
sql_generic_query(gpointer
backend_data, gpointer _batch, gchar
const* name, bson_t
const* selector, gpointer* iterator, GError** error);
JDBType
Definition: jdb-type.h:35
gboolean sql_generic_delete(gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *selector, GError **error)
Definition: sql-generic-dml.c:455
gboolean sql_generic_schema_delete(gpointer backend_data, gpointer _batch, gchar const *name, GError **error)
Definition: sql-generic-ddl.c:383
gboolean sql_generic_init(JSQLSpecifics *specifics)
Definition: sql-generic-common.c:29
gboolean sql_generic_schema_get(gpointer backend_data, gpointer _batch, gchar const *name, bson_t *schema, GError **error)
Definition: sql-generic-dql.c:288
gboolean sql_generic_insert(gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *metadata, bson_t *id, GError **error)
Definition: sql-generic-dml.c:25
gboolean sql_generic_batch_start(gpointer backend_data, gchar const *namespace, JSemantics *semantics, gpointer *_batch, GError **error)
Definition: sql-generic-tcl.c:108
gboolean sql_generic_query(gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *selector, gpointer *iterator, GError **error)
Definition: sql-generic-dql.c:991
gboolean sql_generic_iterate(gpointer backend_data, gpointer _iterator, bson_t *metadata, GError **error)
Definition: sql-generic-dql.c:1198
gboolean sql_generic_update(gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *selector, bson_t const *metadata, GError **error)
Definition: sql-generic-dml.c:265
gboolean sql_generic_schema_create(gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *schema, GError **error)
Definition: sql-generic-ddl.c:25
gboolean sql_generic_batch_execute(gpointer backend_data, gpointer _batch, GError **error)
Definition: sql-generic-tcl.c:147
void sql_generic_fini(void)
Definition: sql-generic-common.c:67
Definition: sql-generic.h:31
gboolean(* statement_step)(gpointer db_connection, gpointer _stmt, gboolean *found, GError **error)
Definition: sql-generic.h:46
gboolean single_threaded
Definition: sql-generic.h:32
struct JSQLSpecifics::@16 sql
gboolean(* statement_step_and_reset_check_done)(gpointer db_connection, gpointer _stmt, GError **error)
Definition: sql-generic.h:47
gboolean(* statement_prepare)(gpointer db_connection, const char *sql, gpointer _stmt, GArray *types_in, GArray *types_out, GError **error)
Definition: sql-generic.h:42
gboolean(* transaction_abort)(gpointer db_connection, GError **error)
Definition: sql-generic.h:41
struct JSQLSpecifics::@15 func
gboolean(* statement_bind_value)(gpointer db_connection, gpointer _stmt, guint idx, JDBType type, JDBTypeValue *value, GError **error)
Definition: sql-generic.h:45
gpointer(* connection_open)(gpointer db_connection_info)
Definition: sql-generic.h:37
gboolean(* statement_bind_null)(gpointer db_connection, gpointer _stmt, guint idx, GError **error)
Definition: sql-generic.h:44
gboolean(* sql_exec)(gpointer db_connection, const char *sql, GError **error)
Definition: sql-generic.h:50
gboolean(* transaction_start)(gpointer db_connection, GError **error)
Definition: sql-generic.h:39
void(* connection_close)(gpointer db_connection)
Definition: sql-generic.h:38
gboolean(* statement_column)(gpointer db_connection, gpointer _stmt, guint idx, JDBType type, JDBTypeValue *value, GError **error)
Definition: sql-generic.h:49
const gchar * quote
Definition: sql-generic.h:60
const gchar * id_type
Definition: sql-generic.h:58
gboolean(* statement_finalize)(gpointer db_connection, gpointer _stmt, GError **error)
Definition: sql-generic.h:43
gboolean(* statement_reset)(gpointer db_connection, gpointer _stmt, GError **error)
Definition: sql-generic.h:48
const gchar * autoincrement
Definition: sql-generic.h:55
const gchar * select_last
Definition: sql-generic.h:59
const gchar * uint64_type
Definition: sql-generic.h:56
gboolean(* transaction_commit)(gpointer db_connection, GError **error)
Definition: sql-generic.h:40
gpointer backend_data
Definition: sql-generic.h:33
Definition: jsemantics.c:42
Definition: jdb-type.h:50