int rc;
sqlite3_stmt *stmt;
static const char s[] =
- "insert into block_index(segment, object, checksum, size) "
- "values (?, ?, ?, ?)";
+ "insert into block_index(segment, object, checksum, size, timestamp) "
+ "values (?, ?, ?, ?, julianday('now'))";
const char *tail;
rc = sqlite3_prepare_v2(db, s, strlen(s), &stmt, &tail);
segment text,
object text,
checksum text,
- size integer
+ size integer,
+ timestamp real
);
create index block_content_index on block_index(checksum);
create index block_name_index on block_index(segment, object);