JULEA
Data Structures | Typedefs | Functions
sql-generic.h File Reference
#include <glib.h>
#include <julea-db.h>

Go to the source code of this file.

Data Structures

struct  JSQLSpecifics
 

Typedefs

typedef struct JSQLSpecifics JSQLSpecifics
 

Functions

gboolean sql_generic_init (JSQLSpecifics *specifics)
 
void sql_generic_fini (void)
 
gboolean sql_generic_batch_start (gpointer backend_data, gchar const *namespace, JSemantics *semantics, gpointer *_batch, GError **error)
 
gboolean sql_generic_batch_execute (gpointer backend_data, gpointer _batch, GError **error)
 
gboolean sql_generic_schema_create (gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *schema, GError **error)
 
gboolean sql_generic_schema_get (gpointer backend_data, gpointer _batch, gchar const *name, bson_t *schema, GError **error)
 
gboolean sql_generic_schema_delete (gpointer backend_data, gpointer _batch, gchar const *name, GError **error)
 
gboolean sql_generic_insert (gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *metadata, bson_t *id, GError **error)
 
gboolean sql_generic_update (gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *selector, bson_t const *metadata, GError **error)
 
gboolean sql_generic_delete (gpointer backend_data, gpointer _batch, gchar const *name, bson_t const *selector, 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_iterate (gpointer backend_data, gpointer _iterator, bson_t *metadata, GError **error)
 

Typedef Documentation

◆ JSQLSpecifics

typedef struct JSQLSpecifics JSQLSpecifics

Function Documentation

◆ sql_generic_batch_execute()

gboolean sql_generic_batch_execute ( gpointer  backend_data,
gpointer  _batch,
GError **  error 
)

◆ sql_generic_batch_start()

gboolean sql_generic_batch_start ( gpointer  backend_data,
gchar const *  namespace,
JSemantics semantics,
gpointer *  _batch,
GError **  error 
)

◆ sql_generic_delete()

gboolean sql_generic_delete ( gpointer  backend_data,
gpointer  _batch,
gchar const *  name,
bson_t const *  selector,
GError **  error 
)

◆ sql_generic_fini()

void sql_generic_fini ( void  )

◆ sql_generic_init()

gboolean sql_generic_init ( JSQLSpecifics specifics)
Todo:
figure out whether we should add an index instead

◆ sql_generic_insert()

gboolean sql_generic_insert ( gpointer  backend_data,
gpointer  _batch,
gchar const *  name,
bson_t const *  metadata,
bson_t *  id,
GError **  error 
)

◆ sql_generic_iterate()

gboolean sql_generic_iterate ( gpointer  backend_data,
gpointer  _iterator,
bson_t *  metadata,
GError **  error 
)
Todo:
Backend specific quotes need to be removed. There should be a better solution.

◆ sql_generic_query()

gboolean sql_generic_query ( gpointer  backend_data,
gpointer  _batch,
gchar const *  name,
bson_t const *  selector,
gpointer *  iterator,
GError **  error 
)

◆ sql_generic_schema_create()

gboolean sql_generic_schema_create ( gpointer  backend_data,
gpointer  _batch,
gchar const *  name,
bson_t const *  schema,
GError **  error 
)
Todo:
IDs will allways be casted to an unsigned 64-bit integer, so it's safe to change this in the client as well

◆ sql_generic_schema_delete()

gboolean sql_generic_schema_delete ( gpointer  backend_data,
gpointer  _batch,
gchar const *  name,
GError **  error 
)

◆ sql_generic_schema_get()

gboolean sql_generic_schema_get ( gpointer  backend_data,
gpointer  _batch,
gchar const *  name,
bson_t *  schema,
GError **  error 
)

◆ sql_generic_update()

gboolean sql_generic_update ( gpointer  backend_data,
gpointer  _batch,
gchar const *  name,
bson_t const *  selector,
bson_t const *  metadata,
GError **  error 
)