JULEA
|
Functions | |
G_LOCK_DEFINE (sql_backend_lock) | |
gboolean | sql_generic_init (JSQLSpecifics *specifics) |
void | sql_generic_fini (void) |
void | thread_variables_fini (void *ptr) |
Free function for JThreadVariables. More... | |
JThreadVariables * | thread_variables_get (gpointer backend_data, GError **error) |
Retrieve the thread-private JThreadVariables. More... | |
JSqlStatement * | j_sql_statement_new (gchar const *query, GArray *types_in, GArray *types_out, GHashTable *out_variables_index, GHashTable *variable_types, GError **error) |
Construct a JSqlStatement struct from the necessary information. More... | |
void | j_sql_statement_free (JSqlStatement *ptr) |
Destructor for a JSqlStatement. More... | |
GString * | j_sql_get_full_field_name (const gchar *namespace, const gchar *table, const gchar *field) |
Get the full field name from the different parts. More... | |
Variables | |
GPrivate | thread_variables_global = G_PRIVATE_INIT(thread_variables_fini) |
Holds a thread-private pointer to JThreadVariables. More... | |
JSQLSpecifics * | specs |
Contains the specific string constants and functions for a DB backend. More... | |
G_LOCK_DEFINE | ( | sql_backend_lock | ) |
GString* j_sql_get_full_field_name | ( | const gchar * | namespace, |
const gchar * | table, | ||
const gchar * | field | ||
) |
Get the full field name from the different parts.
The name is correctly quoted and suitable as key in schema hash tables and as name in queries.
namespace | The namespace of the operation. |
table | The name of the table. |
field | The name of a column in the table. |
void j_sql_statement_free | ( | JSqlStatement * | ptr | ) |
Destructor for a JSqlStatement.
ptr | Pointer to the Statement. |
JSqlStatement* j_sql_statement_new | ( | gchar const * | query, |
GArray * | types_in, | ||
GArray * | types_out, | ||
GHashTable * | out_variables_index, | ||
GHashTable * | variable_types, | ||
GError ** | error | ||
) |
Construct a JSqlStatement struct from the necessary information.
query | A SQL query string. | |
types_in | The types of input variables in correct order. Needed by some DB backends for statement compilation. | |
types_out | The types of output variables in correct order. Needed by some DB backends for statement compilation. | |
out_variables_index | A map from output variable names to their position. See JSqlStatement for details. | |
variable_types | Type information for the query. See JSqlStatement for details. | |
[out] | error | An uninitialized GError* for error code passing. |
void sql_generic_fini | ( | void | ) |
gboolean sql_generic_init | ( | JSQLSpecifics * | specifics | ) |
void thread_variables_fini | ( | void * | ptr | ) |
Free function for JThreadVariables.
ptr | Pointer to an allocated JThreadVariables struct. |
JThreadVariables* thread_variables_get | ( | gpointer | backend_data, |
GError ** | error | ||
) |
Retrieve the thread-private JThreadVariables.
The struct will be initialized if this function is called by a new thread for the first time.
backend_data | The backend-specific information to open a connection. | |
[out] | error | An uninitialized GError* for error code passing. |
JSQLSpecifics* specs |
Contains the specific string constants and functions for a DB backend.
GPrivate thread_variables_global = G_PRIVATE_INIT(thread_variables_fini) |
Holds a thread-private pointer to JThreadVariables.