merged with master
authoradam <adamansky@gmail.com>
Sat, 13 Jul 2013 16:30:08 +0000 (23:30 +0700)
committeradam <adamansky@gmail.com>
Sat, 13 Jul 2013 16:30:08 +0000 (23:30 +0700)
1  2 
tcejdb/bson.c
tcejdb/bson.h
tcejdb/ejdb.c
tcejdb/ejdb.h

diff --cc tcejdb/bson.c
Simple merge
diff --cc tcejdb/bson.h
Simple merge
diff --cc tcejdb/ejdb.c
Simple merge
diff --cc tcejdb/ejdb.h
@@@ -436,22 -495,9 +496,26 @@@ EJDB_EXPORT bool ejdbtranabort(EJCOLL *
  /** Get current transaction status, it will be placed into txActive*/
  EJDB_EXPORT bool ejdbtranstatus(EJCOLL *jcoll, bool *txactive);
  
 +
+ /** Gets description of EJDB database and its collections. */
+ EJDB_EXPORT bson* ejdbmeta(EJDB *jb);
++
 +/** Export settings */
 +enum {
 +    JBJSONEXPORT = 1 //If set json collection data will be exported into JSON instead of BSON
 +};
 +
 +/**
 + * Export database data to the specified location. Read lock will be taken on each collection
 + * @param path Directory name in which data will exported.
 + * @param colnames List of collection names to export. If NULL all collections will be exported.
 + * @param flags. Reserved for future use.
 + * @return on sucess `true`
 + */
 +EJDB_EXPORT bool ejdbexport(EJDB *jb, const char *path, TCLIST *cnames, int flags);
 +
 +
  EJDB_EXTERN_C_END
  
  #endif        /* EJDB_H */