import { DocDriverSqlite } from "https://deno.land/x/earthstar@v10.2.0/src/entries/node.ts";
A strorage driver which persists to SQLite. Works in Deno and browsers.
Methods
private
ensureTables()private
queryDocsSync(queryToClean: Query<string[]>): DocBase<string>[]private
upsertSync<DocType extends DocBase<string>>(doc: DocType): DocType_getConfigSync(key: string): string | undefined
_listConfigKeysSync(): string[]
close(erase: boolean): Promise<void>
deleteConfig(key: string): Promise<boolean>
getConfig(key: string): Promise<string | undefined>
getMaxLocalIndex(): Promise<number>
isClosed(): boolean
listConfigKeys(): Promise<string[]>
queryDocs(queryToClean: Query<string[]>): Promise<DocBase<string>[]>
setConfig(key: string, content: string): Promise<void>
upsert<DocType extends DocBase<string>>(doc: DocType): Promise<DocType>