Optionalfname: string = 'seeqrets.db'Optionalvault_dir: string = nullOpen the database, run a callback, and save if modified.
receives the sql.js Database instance
Optionalwrite: boolean = falsewhether to save changes back to disk
return value of fn
Build a WHERE field clause with parameter.
Build an OR clause for comma-separated values.
Build a full WHERE clause from a filter dict.
Execute a query and return rows as objects.
Execute a SQL query with filters.
Execute a write SQL statement with filters.
Hydrate a User from a row object. Extra slack_* fields are optional so callers can select a narrower column set when they don't need them.
Update the slack identity binding for a user.
Optionalslack_handle?: string | nullOptionalslack_key_fingerprint?: string | nullOptionalslack_verified_at?: number | nullunix seconds
Fetch a raw encrypted blob from the kv table. Callers are responsible for Fernet-unwrapping the returned value.
Upsert a kv row. The value must already be Fernet-encrypted.
Delete a single kv row.
Delete every kv row whose key starts with the given prefix.
Used by jseeqret slack logout to wipe all slack.* entries.
List (key, updated_at) pairs with a given prefix. Does not return the encrypted value.
override vault directory