#include <sys/mman.h>
-#include <sqlite3.h>
#include "sha256.h"
#include "lzma.h"
static char *create_table = "create table if not exists files (hash text primary key, size integer, compression text, content blob)";
#endif
-
-struct dbh {
- sqlite3 *db;
- char *errmsg;
- int rc;
-};
#include <sys/mman.h>
-#include <sqlite3.h>
+#include "sqlite3.h"
#include "sha256.h"
-
static int callback(void *NotUsed, int argc, char **argv, char **azColName){
int i;
for(i=0; i<argc; i++){
return 0;
}
-#if 0
-static char *create_table = "create table if not exists files (hash text primary key, size integer, compression text, content blob)";
-#endif
-
struct dbh {
sqlite3 *db;
char *errmsg;