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