Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / db / utils / dmp.C
diff --git a/cinelerra-5.1/db/utils/dmp.C b/cinelerra-5.1/db/utils/dmp.C
new file mode 100644 (file)
index 0000000..f9e5883
--- /dev/null
@@ -0,0 +1,21 @@
+#include<stdio.h>
+#include<stdarg.h>
+#include<time.h>
+
+#include "tdb.h"
+#include "s.C"
+
+int main(int ac, char **av)
+{
+  setbuf(stdout,0);
+  theDb db;
+  db.open(av[1]);
+  //db.access(av[1], 34543, 0);
+  if( !db.opened() || db.error() ) exit(1);
+  db.dmp();
+  db.commit(1);
+  db.commit(1);
+  db.close();
+  return 0;
+}
+