JULEA
Functions
jbson.c File Reference
#include <julea-config.h>
#include <glib.h>
#include <bson.h>
#include <julea.h>
#include <julea-db.h>
#include <db-util/jbson.h>

Functions

gboolean j_bson_iter_init (bson_iter_t *iter, const bson_t *bson, GError **error)
 
gboolean j_bson_iter_next (bson_iter_t *iter, gboolean *has_next, GError **error)
 
gboolean j_bson_iter_key_equals (bson_iter_t *iter, const char *key, gboolean *equals, GError **error)
 
gboolean j_bson_iter_skip_key (bson_iter_t *iter, const char *key, GError **error)
 
const char * j_bson_iter_key (bson_iter_t *iter, GError **error)
 
gboolean j_bson_append_value (bson_t *bson, const char *name, JDBType type, JDBTypeValue *value, GError **error)
 
gboolean j_bson_iter_value (bson_iter_t *iter, JDBType type, JDBTypeValue *value, GError **error)
 
gboolean j_bson_iter_find (bson_iter_t *iter, const char *key, GError **error)
 
gboolean j_bson_iter_not_find (bson_iter_t *iter, const char *key, GError **error)
 
gboolean j_bson_iter_recurse_array (bson_iter_t *iter, bson_iter_t *iter_child, GError **error)
 
gboolean j_bson_iter_recurse_document (bson_iter_t *iter, bson_iter_t *iter_child, GError **error)
 
gboolean j_bson_iter_copy_document (bson_iter_t *iter, bson_t *bson, GError **error)
 
gboolean j_bson_has_enough_keys (const bson_t *bson, guint32 min_keys, GError **error)
 
void j_bson_destroy (bson_t *bson)
 
gboolean j_bson_init (bson_t *bson, GError **error)
 
gboolean j_bson_has_field (bson_t *bson, gchar const *name, gboolean *has_field, GError **error)
 
gboolean j_bson_count_keys (bson_t *bson, guint32 *count, GError **error)
 
gboolean j_bson_array_generate_key (guint32 index, const char **key, char *buf, guint buf_length, GError **error)
 
gboolean j_bson_append_array (bson_t *bson, const char *key, bson_t *bson_child, GError **error)
 
gboolean j_bson_append_array_begin (bson_t *bson, const char *key, bson_t *bson_child, GError **error)
 
gboolean j_bson_append_array_end (bson_t *bson, bson_t *bson_child, GError **error)
 
gboolean j_bson_append_document (bson_t *bson, const char *key, bson_t *bson_child, GError **error)
 
gboolean j_bson_append_document_begin (bson_t *bson, const char *key, bson_t *bson_child, GError **error)
 
gboolean j_bson_append_document_end (bson_t *bson, bson_t *bson_child, GError **error)
 

Function Documentation

◆ j_bson_append_array()

gboolean j_bson_append_array ( bson_t *  bson,
const char *  key,
bson_t *  bson_child,
GError **  error 
)

◆ j_bson_append_array_begin()

gboolean j_bson_append_array_begin ( bson_t *  bson,
const char *  key,
bson_t *  bson_child,
GError **  error 
)

◆ j_bson_append_array_end()

gboolean j_bson_append_array_end ( bson_t *  bson,
bson_t *  bson_child,
GError **  error 
)

◆ j_bson_append_document()

gboolean j_bson_append_document ( bson_t *  bson,
const char *  key,
bson_t *  bson_child,
GError **  error 
)

◆ j_bson_append_document_begin()

gboolean j_bson_append_document_begin ( bson_t *  bson,
const char *  key,
bson_t *  bson_child,
GError **  error 
)

◆ j_bson_append_document_end()

gboolean j_bson_append_document_end ( bson_t *  bson,
bson_t *  bson_child,
GError **  error 
)

◆ j_bson_append_value()

gboolean j_bson_append_value ( bson_t *  bson,
const char *  name,
JDBType  type,
JDBTypeValue value,
GError **  error 
)

◆ j_bson_array_generate_key()

gboolean j_bson_array_generate_key ( guint32  index,
const char **  key,
char *  buf,
guint  buf_length,
GError **  error 
)
Todo:
does more or less the same as j_helper_get_number_string

◆ j_bson_count_keys()

gboolean j_bson_count_keys ( bson_t *  bson,
guint32 *  count,
GError **  error 
)

◆ j_bson_destroy()

void j_bson_destroy ( bson_t *  bson)

◆ j_bson_has_enough_keys()

gboolean j_bson_has_enough_keys ( const bson_t *  bson,
guint32  min_keys,
GError **  error 
)

◆ j_bson_has_field()

gboolean j_bson_has_field ( bson_t *  bson,
gchar const *  name,
gboolean *  has_field,
GError **  error 
)

◆ j_bson_init()

gboolean j_bson_init ( bson_t *  bson,
GError **  error 
)

◆ j_bson_iter_copy_document()

gboolean j_bson_iter_copy_document ( bson_iter_t *  iter,
bson_t *  bson,
GError **  error 
)

◆ j_bson_iter_find()

gboolean j_bson_iter_find ( bson_iter_t *  iter,
const char *  key,
GError **  error 
)

◆ j_bson_iter_init()

gboolean j_bson_iter_init ( bson_iter_t *  iter,
const bson_t *  bson,
GError **  error 
)

◆ j_bson_iter_key()

const char* j_bson_iter_key ( bson_iter_t *  iter,
GError **  error 
)

◆ j_bson_iter_key_equals()

gboolean j_bson_iter_key_equals ( bson_iter_t *  iter,
const char *  key,
gboolean *  equals,
GError **  error 
)

◆ j_bson_iter_next()

gboolean j_bson_iter_next ( bson_iter_t *  iter,
gboolean *  has_next,
GError **  error 
)

◆ j_bson_iter_not_find()

gboolean j_bson_iter_not_find ( bson_iter_t *  iter,
const char *  key,
GError **  error 
)

◆ j_bson_iter_recurse_array()

gboolean j_bson_iter_recurse_array ( bson_iter_t *  iter,
bson_iter_t *  iter_child,
GError **  error 
)

◆ j_bson_iter_recurse_document()

gboolean j_bson_iter_recurse_document ( bson_iter_t *  iter,
bson_iter_t *  iter_child,
GError **  error 
)

◆ j_bson_iter_skip_key()

gboolean j_bson_iter_skip_key ( bson_iter_t *  iter,
const char *  key,
GError **  error 
)

◆ j_bson_iter_value()

gboolean j_bson_iter_value ( bson_iter_t *  iter,
JDBType  type,
JDBTypeValue value,
GError **  error 
)