23 #ifndef JULEA_DB_INTERNAL_H
24 #define JULEA_DB_INTERNAL_H
26 #if !defined(JULEA_DB_H) && !defined(JULEA_DB_COMPILATION)
27 #error "Only <julea-db.h> can be included directly."
G_GNUC_INTERNAL JBackend * j_db_get_backend(void)
Definition: jdb.c:103
gboolean j_db_internal_update(JDBEntry *j_db_entry, JDBSelector *j_db_selector, JBatch *batch, GError **error)
Definition: jdb-internal.c:327
gboolean j_db_internal_insert(JDBEntry *j_db_entry, JBatch *batch, GError **error)
Definition: jdb-internal.c:286
gboolean j_db_selector_finalize(JDBSelector *selector, GError **error)
Build the final field of the selector.
Definition: jdb-internal.c:511
gboolean j_db_internal_iterate(JDBIterator *j_db_iterator, GError **error)
Definition: jdb-internal.c:455
gboolean j_db_internal_schema_create(JDBSchema *j_db_schema, JBatch *batch, GError **error)
Definition: jdb-internal.c:167
gboolean j_db_internal_schema_delete(JDBSchema *j_db_schema, JBatch *batch, GError **error)
Definition: jdb-internal.c:247
gboolean j_db_internal_schema_get(JDBSchema *j_db_schema, JBatch *batch, GError **error)
Definition: jdb-internal.c:207
gboolean j_db_internal_query(JDBSchema *j_db_schema, JDBSelector *j_db_selector, JDBIterator *j_db_iterator, JBatch *batch, GError **error)
Definition: jdb-internal.c:412
bson_t * j_db_selector_get_bson(JDBSelector *selector)
Get the selector data represented as a single bson document.
Definition: jdb-internal.c:580
gboolean j_db_internal_delete(JDBEntry *j_db_entry, JDBSelector *j_db_selector, JBatch *batch, GError **error)
Definition: jdb-internal.c:370
JDBSelectorMode
Definition: jdb-selector.h:35
Definition: jbackend.h:132
Definition: jdb-internal.h:46
JDBSchema * schema
Definition: jdb-internal.h:50
bson_t id
Definition: jdb-internal.h:48
gint ref_count
Definition: jdb-internal.h:52
bson_t bson
Definition: jdb-internal.h:47
Definition: jdb-internal.h:56
JDBSelector * selector
Definition: jdb-internal.h:60
gpointer iterator
Definition: jdb-internal.h:62
gboolean valid
Definition: jdb-internal.h:66
gint ref_count
Definition: jdb-internal.h:64
JDBSchema * schema
Definition: jdb-internal.h:59
gboolean bson_valid
Definition: jdb-internal.h:67
bson_t bson
Definition: jdb-internal.h:57
Definition: jdb-internal.h:71
guint variable_count
Definition: jdb-internal.h:74
GHashTable * variables
Definition: jdb-internal.h:72
Definition: jdb-internal.h:78
GHashTable * variables
Definition: jdb-internal.h:82
bson_t bson
Definition: jdb-internal.h:79
gboolean bson_index_initialized
Definition: jdb-internal.h:92
guint bson_index_count
Definition: jdb-internal.h:88
gint ref_count
Definition: jdb-internal.h:89
bson_t bson_index
Definition: jdb-internal.h:80
gchar * name
Definition: jdb-internal.h:85
gboolean bson_initialized
Definition: jdb-internal.h:91
gboolean server_side
Definition: jdb-internal.h:93
GArray * index
Definition: jdb-internal.h:83
Definition: jdb-internal.h:102
bson_t joins
The selector encoded as BSON. Joins and tables are managed separately.
Definition: jdb-internal.h:104
JDBSelectorMode mode
TRUE iff final got built and the selector was not modified.
Definition: jdb-internal.h:115
GHashTable * join_schema
Primary schema. This one must be used for joins.
Definition: jdb-internal.h:118
gboolean final_valid
Definition: jdb-internal.h:113
gint ref_count
The number of selecotr entries must not exceed 500.
Definition: jdb-internal.h:121
guint selection_count
Stores the names of joined schemas. It is used as a set and all values are NULL.
Definition: jdb-internal.h:120
bson_t selection
Definition: jdb-internal.h:103
JDBSchema * schema
Definition: jdb-internal.h:116