const SCHEMA: &'static str = "
CREATE TABLE collections (
collection_id integer PRIMARY KEY,
name text NOT NULL UNIQUE
);
CREATE TABLE data (
collection_id integer NOT NULL REFERENCES collections (collection_id),
key blob NOT NULL,
value blob NOT NULL,
time integer NOT NULL,
diff integer NOT NULL
);
CREATE INDEX data_time_idx ON data (collection_id, time);
CREATE TABLE sinces (
collection_id NOT NULL UNIQUE REFERENCES collections (collection_id),
since integer
);
CREATE TABLE uppers (
collection_id NOT NULL UNIQUE REFERENCES collections (collection_id),
upper integer
);
";