class DocDriverSqliteFfi
implements IReplicaDocDriver
import { DocDriverSqliteFfi } from "https://deno.land/x/earthstar@v10.0.1/src/replica/doc_drivers/sqlite_ffi.ts";
A strorage driver which persists to SQLite using native bindings. Works in Deno.
Requires the --unstable
flag to be passed to Deno when used.
Constructors
new
DocDriverSqliteFfi(opts: ReplicaSqliteOpts)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[]>
setConfig(key: string, content: string): Promise<void>