| 
    JULEA
    
   | 
 
Functions | |
| gboolean | _backend_schema_get (gpointer backend_data, gchar const *namespace, gchar const *name, bson_t *schema, GError **error) | 
| Retrieve the schema as bson document.   | |
| GHashTable * | get_schema (gpointer backend_data, gchar const *namespace, gchar const *name, GError **error) | 
| Get the schema as a HashTable for internal usage.   | |
| gboolean | sql_generic_schema_get (gpointer backend_data, gpointer _batch, gchar const *name, bson_t *schema, GError **error) | 
| gboolean | build_query_condition_part (gpointer backend_data, JSqlBatch *batch, bson_iter_t *iter, GString *sql, JDBSelectorMode mode, GArray *arr_types_in, GHashTable *variable_types, GError **error) | 
| Build the WHERE part of a SELECT statement from a selector.   | |
| gboolean | bind_selector_query (gpointer backend_data, const gchar *namespace, bson_iter_t *iter, JSqlStatement *statement, GHashTable *schema, GError **error) | 
| Bind the variables in the WHERE part of a SELECT statement.   | |
| gboolean | _backend_query_ids (gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *selector, GArray **matches, GError **error) | 
| Query the IDs of rows that match a selector.   | |
| gboolean | sql_generic_query (gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *selector, gpointer *iterator, GError **error) | 
| gboolean | sql_generic_iterate (gpointer backend_data, gpointer _iterator, bson_t *query_result, GError **error) | 
| gboolean _backend_query_ids | ( | gpointer | backend_data, | 
| gpointer | _batch, | ||
| gchar const * | name, | ||
| bson_t const * | selector, | ||
| GArray ** | matches, | ||
| GError ** | error | ||
| ) | 
Query the IDs of rows that match a selector.
It is is used in the update and delete functions.
| backend_data | The backend-specific information to open a connection. | |
| _batch | A JSqlBatch object. | |
| name | The schema name. | |
| selector | A bson selector document sent by the client. | |
| [out] | matches | A GArray of the matched IDs. | 
| [out] | error | An uninitialized GError* for error code passing. | 
| gboolean _backend_schema_get | ( | gpointer | backend_data, | 
| gchar const * | namespace, | ||
| gchar const * | name, | ||
| bson_t * | schema, | ||
| GError ** | error | ||
| ) | 
Retrieve the schema as bson document.
This format is suitable for answering schema requests by clients.
| backend_data | The backend-specific information to open a connection. | |
| namespace | The namespace of the schema. | |
| name | The schema name. | |
| [in,out] | schema | A bson document to be filled with schema information as a list of variable name and type pairs. | 
| [out] | error | An uninitialized GError* for error code passing. | 
| gboolean bind_selector_query | ( | gpointer | backend_data, | 
| const gchar * | namespace, | ||
| bson_iter_t * | iter, | ||
| JSqlStatement * | statement, | ||
| GHashTable * | schema, | ||
| GError ** | error | ||
| ) | 
Bind the variables in the WHERE part of a SELECT statement.
| backend_data | The backend-specific information to open a connection. | 
| iter | An initialized iterator over the relevant part of the selector bson document. Should be retrieved the same way as for build_selector_query to ensure the same order of variables! | 
| statement | A JSqlStatement which | 
| schema | The database schema in hash table format. | 
| [out] | error | An uninitialized GError* for error code passing. | 
| gboolean build_query_condition_part | ( | gpointer | backend_data, | 
| JSqlBatch * | batch, | ||
| bson_iter_t * | iter, | ||
| GString * | sql, | ||
| JDBSelectorMode | mode, | ||
| GArray * | arr_types_in, | ||
| GHashTable * | schema, | ||
| GError ** | error | ||
| ) | 
Build the WHERE part of a SELECT statement from a selector.
| backend_data | The backend-specific information to open a connection. | |
| iter | An initialized iterator over the relevant part of the selector bson document. | |
| batch | The batch of the operation. | |
| [in,out] | sql | A GString to which the WHERE part of the query should be appended. | 
| mode | The mode of the selector (i.e., AND or OR). | |
| arr_types_in | An allocated GArray to which the found types will be appended. | |
| schema | The database schema in hash table format. | 
| [out] | error | An uninitialized GError* for error code passing. | 
| GHashTable * get_schema | ( | gpointer | backend_data, | 
| gchar const * | namespace, | ||
| gchar const * | name, | ||
| GError ** | error | ||
| ) | 
Get the schema as a HashTable for internal usage.
Uses a transparent cache for schemas.
| backend_data | The backend-specific information to open a connection if needed. | |
| namespace | The namespace of the schema. | |
| name | The schema name. | |
| [out] | error | An uninitialized GError* for error code passing. | 
| gboolean sql_generic_iterate | ( | gpointer | backend_data, | 
| gpointer | _iterator, | ||
| bson_t * | query_result, | ||
| GError ** | error | ||
| ) | 
| gboolean sql_generic_query | ( | gpointer | backend_data, | 
| gpointer | _batch, | ||
| gchar const * | name, | ||
| bson_t const * | selector, | ||
| gpointer * | iterator, | ||
| GError ** | error | ||
| ) | 
| gboolean sql_generic_schema_get | ( | gpointer | backend_data, | 
| gpointer | _batch, | ||
| gchar const * | name, | ||
| bson_t * | schema, | ||
| GError ** | error | ||
| ) |