JULEA
Functions
jbackend.c File Reference
#include <julea-config.h>
#include <glib.h>
#include <gmodule.h>
#include <jbackend.h>
#include <jtrace.h>

Functions

GQuark j_backend_bson_error_quark (void)
 
GQuark j_backend_db_error_quark (void)
 
GQuark j_backend_sql_error_quark (void)
 
gboolean j_backend_load (gchar const *name, JBackendComponent component, JBackendType type, GModule **module, JBackend **backend)
 
gboolean j_backend_unload (JBackend *backend, GModule *module)
 
gboolean j_backend_object_init (JBackend *backend, gchar const *path)
 
void j_backend_object_fini (JBackend *backend)
 
gboolean j_backend_object_create (JBackend *backend, gchar const *namespace, gchar const *path, gpointer *data)
 
gboolean j_backend_object_open (JBackend *backend, gchar const *namespace, gchar const *path, gpointer *data)
 
gboolean j_backend_object_delete (JBackend *backend, gpointer data)
 
gboolean j_backend_object_get_all (JBackend *backend, gchar const *namespace, gpointer *iterator)
 
gboolean j_backend_object_get_by_prefix (JBackend *backend, gchar const *namespace, gchar const *prefix, gpointer *iterator)
 
gboolean j_backend_object_iterate (JBackend *backend, gpointer iterator, gchar const **name)
 
gboolean j_backend_object_close (JBackend *backend, gpointer data)
 
gboolean j_backend_object_status (JBackend *backend, gpointer data, gint64 *modification_time, guint64 *size)
 
gboolean j_backend_object_sync (JBackend *backend, gpointer data)
 
gboolean j_backend_object_read (JBackend *backend, gpointer data, gpointer buffer, guint64 length, guint64 offset, guint64 *bytes_read)
 
gboolean j_backend_object_write (JBackend *backend, gpointer data, gconstpointer buffer, guint64 length, guint64 offset, guint64 *bytes_written)
 
gboolean j_backend_kv_init (JBackend *backend, gchar const *path)
 
void j_backend_kv_fini (JBackend *backend)
 
gboolean j_backend_kv_batch_start (JBackend *backend, gchar const *namespace, JSemantics *semantics, gpointer *batch)
 
gboolean j_backend_kv_batch_execute (JBackend *backend, gpointer batch)
 
gboolean j_backend_kv_put (JBackend *backend, gpointer batch, gchar const *key, gconstpointer value, guint32 value_len)
 
gboolean j_backend_kv_delete (JBackend *backend, gpointer batch, gchar const *key)
 
gboolean j_backend_kv_get (JBackend *backend, gpointer batch, gchar const *key, gpointer *value, guint32 *value_len)
 
gboolean j_backend_kv_get_all (JBackend *backend, gchar const *namespace, gpointer *iterator)
 
gboolean j_backend_kv_get_by_prefix (JBackend *backend, gchar const *namespace, gchar const *prefix, gpointer *iterator)
 
gboolean j_backend_kv_iterate (JBackend *backend, gpointer iterator, gchar const **key, gconstpointer *value, guint32 *value_len)
 
gboolean j_backend_db_init (JBackend *backend, gchar const *path)
 
void j_backend_db_fini (JBackend *backend)
 
gboolean j_backend_db_batch_start (JBackend *backend, gchar const *namespace, JSemantics *semantics, gpointer *batch, GError **error)
 
gboolean j_backend_db_batch_execute (JBackend *backend, gpointer batch, GError **error)
 
gboolean j_backend_db_schema_create (JBackend *backend, gpointer batch, gchar const *name, bson_t const *schema, GError **error)
 
gboolean j_backend_db_schema_get (JBackend *backend, gpointer batch, gchar const *name, bson_t *schema, GError **error)
 
gboolean j_backend_db_schema_delete (JBackend *backend, gpointer batch, gchar const *name, GError **error)
 
gboolean j_backend_db_insert (JBackend *backend, gpointer batch, gchar const *name, bson_t const *metadata, bson_t *id, GError **error)
 
gboolean j_backend_db_update (JBackend *backend, gpointer batch, gchar const *name, bson_t const *selector, bson_t const *metadata, GError **error)
 
gboolean j_backend_db_delete (JBackend *backend, gpointer batch, gchar const *name, bson_t const *selector, GError **error)
 
gboolean j_backend_db_query (JBackend *backend, gpointer batch, gchar const *name, bson_t const *selector, gpointer *iterator, GError **error)
 
gboolean j_backend_db_iterate (JBackend *backend, gpointer iterator, bson_t *metadata, GError **error)