SqliteOfficialOptions
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:44
官方 sqlite-wasm 适配器的完整选项。
Extends
SqliteOfficialOptionsBase
Properties
batchTimeout?
optional batchTimeout?: number;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:24
Default
16(BALANCED)@see BATCH_TIMEOUT
Inherited from
SqliteOfficialOptionsBase.batchTimeout
cacheSizeKb?
optional cacheSizeKb?: number;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:22
See
https://www.sqlite.org/pragma.html#pragma_cache_size
Default
51200
Inherited from
SqliteOfficialOptionsBase.cacheSizeKb
locateFile?
optional locateFile?: (name) => string;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:16
自定义 Emscripten 资源定位函数;不能传给 worker。
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
string
Inherited from
SqliteOfficialOptionsBase.locateFile
opfs?
optional opfs?: boolean;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:10
是否使用 OPFS 持久化数据库。
Inherited from
SqliteOfficialOptionsBase.opfs
opfsFallback?
optional opfsFallback?: OpfsFallback;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:26
OPFS 数据库打开失败时的行为。@default 'throw'
See
Oo1ClientBase
Inherited from
SqliteOfficialOptionsBase.opfsFallback
opfsProxyPath?
optional opfsProxyPath?: string;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:14
OPFS proxy worker 文件的显式 URL。
Inherited from
SqliteOfficialOptionsBase.opfsProxyPath
print?
optional print?: (msg) => void;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:18
sqlite 标准输出处理函数;不能传给 worker。
Parameters
| Parameter | Type |
|---|---|
msg | string |
Returns
void
Inherited from
SqliteOfficialOptionsBase.print
printErr?
optional printErr?: (msg) => void;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:20
sqlite 标准错误处理函数;不能传给 worker。
Parameters
| Parameter | Type |
|---|---|
msg | string |
Returns
void
Inherited from
SqliteOfficialOptionsBase.printErr
repositories?
optional repositories?: Record<string, SqliteOfficialRepositoryConstructor<RepositoryBase<AnyEntityType>>>;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:46
按实体名覆盖默认 Repository / TreeRepository 的构造器。
sharedWorker?
optional sharedWorker?: boolean;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:32
是否在 shared worker 中运行客户端。
Inherited from
SqliteOfficialOptionsBase.sharedWorker
sharedWorkerInstance?
optional sharedWorkerInstance?: SharedWorker;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:34
由调用方创建并持有的 shared worker。
Inherited from
SqliteOfficialOptionsBase.sharedWorkerInstance
wasmPath?
optional wasmPath?: string;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:12
sqlite WASM 文件的显式 URL。
Inherited from
SqliteOfficialOptionsBase.wasmPath
worker?
optional worker?: boolean;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:28
是否在专用 worker 中运行客户端。
Inherited from
SqliteOfficialOptionsBase.worker
workerInstance?
optional workerInstance?: Worker;
Defined in: packages/rxdb-adapter-sqlite/src/sqlite-official.interface.ts:30
由调用方创建并持有的专用 worker;适配器断开时不会代替调用方终止它。
Inherited from
SqliteOfficialOptionsBase.workerInstance