JULEA
Data Structures | Typedefs | Functions
jdb-internal.c File Reference
#include <julea-config.h>
#include <glib.h>
#include <string.h>
#include <bson.h>
#include <db/jdb-error.h>
#include <db/jdb-internal.h>
#include <julea.h>
#include <julea-db.h>

Data Structures

struct  JDBIteratorHelper
 

Typedefs

typedef struct JDBIteratorHelper JDBIteratorHelper
 

Functions

GQuark j_db_error_quark (void)
 
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)
 
gboolean j_db_selector_finalize (JDBSelector *selector, GError **error)
 Build the final field of the selector. More...
 
bson_t * j_db_selector_get_bson (JDBSelector *selector)
 Get the selector data represented as a single bson document. More...
 

Typedef Documentation

◆ JDBIteratorHelper

Function Documentation

◆ j_db_error_quark()

GQuark j_db_error_quark ( void  )

◆ 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*