atData constant

String const atData

One row per live atKey. Deletes remove the row (sync-visible deletion state lives in commitLog, not here as a tombstone). metadata is the canonical AtMetaData JSON (the wire llookup:all form); expires_at/available_at/refresh_at are indexed extracts of the same-named derived metadata fields (epoch millis, UTC).

Implementation

static const String atData = '''
CREATE TABLE IF NOT EXISTS at_data (
atkey        TEXT PRIMARY KEY NOT NULL,
value        TEXT,
metadata     TEXT NOT NULL,
expires_at   INTEGER,
available_at INTEGER,
refresh_at   INTEGER
) WITHOUT ROWID;
''';