JULEA
Data Structures | Functions
jdb-internal.h File Reference
#include <glib.h>
#include <bson.h>
#include <julea.h>
#include <db-util/jbson.h>
#include <db/jdb-entry.h>
#include <db/jdb-iterator.h>
#include <db/jdb-schema.h>
#include <db/jdb-selector.h>

Go to the source code of this file.

Data Structures

struct  JDBEntry
 
struct  JDBIterator
 
struct  JDBSchemaIndex
 
struct  JDBSchema
 
struct  JDBSelector
 

Functions

gboolean j_db_internal_schema_create (JDBSchema *j_db_schema, JBatch *batch, GError **error)
 
gboolean j_db_internal_schema_get (JDBSchema *j_db_schema, JBatch *batch, GError **error)
 
gboolean j_db_internal_schema_delete (JDBSchema *j_db_schema, JBatch *batch, GError **error)
 
gboolean j_db_internal_insert (JDBEntry *j_db_entry, JBatch *batch, GError **error)
 
gboolean j_db_internal_update (JDBEntry *j_db_entry, JDBSelector *j_db_selector, JBatch *batch, GError **error)
 
gboolean j_db_internal_delete (JDBEntry *j_db_entry, JDBSelector *j_db_selector, JBatch *batch, GError **error)
 
gboolean j_db_internal_query (JDBSchema *j_db_schema, JDBSelector *j_db_selector, JDBIterator *j_db_iterator, JBatch *batch, GError **error)
 
gboolean j_db_internal_iterate (JDBIterator *j_db_iterator, GError **error)
 
bson_t * j_db_selector_get_bson (JDBSelector *selector)
 Get the selector data represented as a single bson document. More...
 
gboolean j_db_selector_finalize (JDBSelector *selector, GError **error)
 Build the final field of the selector. More...
 
G_GNUC_INTERNAL JBackendj_db_get_backend (void)
 

Function Documentation

◆ j_db_internal_delete()

gboolean j_db_internal_delete ( JDBEntry j_db_entry,
JDBSelector j_db_selector,
JBatch batch,
GError **  error 
)

◆ j_db_internal_insert()

gboolean j_db_internal_insert ( JDBEntry j_db_entry,
JBatch batch,
GError **  error 
)

◆ j_db_internal_iterate()

gboolean j_db_internal_iterate ( JDBIterator j_db_iterator,
GError **  error 
)

◆ j_db_internal_query()

gboolean j_db_internal_query ( JDBSchema j_db_schema,
JDBSelector j_db_selector,
JDBIterator j_db_iterator,
JBatch batch,
GError **  error 
)

◆ j_db_internal_schema_create()

gboolean j_db_internal_schema_create ( JDBSchema j_db_schema,
JBatch batch,
GError **  error 
)

◆ j_db_internal_schema_delete()

gboolean j_db_internal_schema_delete ( JDBSchema j_db_schema,
JBatch batch,
GError **  error 
)

◆ j_db_internal_schema_get()

gboolean j_db_internal_schema_get ( JDBSchema j_db_schema,
JBatch batch,
GError **  error 
)

◆ j_db_internal_update()

gboolean j_db_internal_update ( JDBEntry j_db_entry,
JDBSelector j_db_selector,
JBatch batch,
GError **  error 
)

◆ j_db_selector_finalize()

gboolean j_db_selector_finalize ( JDBSelector selector,
GError **  error 
)

Build the final field of the selector.

Appends the "t" and "j" section if joins are present. In any case the "s" section will be created.

Parameters
selectora pointer of type JDBSelector.
Precondition
selector != NULL
selector->final_valid == FALSE
Returns
TRUE on success, FALSE otherwise

◆ j_db_selector_get_bson()

bson_t* j_db_selector_get_bson ( JDBSelector selector)

Get the selector data represented as a single bson document.

The returned bson is suitable for requests to the DB backend. For more details see doc/db-code.md.

Parameters
selector
Returns
bson_t*