跳到主要内容

rxdb-adapter-sqlite

@aiao/rxdb 的官方 SQLite 适配器,基于 SQLite 官方 WASM 构建,为核心引擎提供 SQLite 存储后端。

安装

pnpm add @aiao/rxdb @aiao/rxdb-adapter-sqlite rxjs

用法

import { createSqliteClient, RxDBAdapterSqlite } from '@aiao/rxdb-adapter-sqlite';
  • createSqliteClient:创建 SQLite 客户端
  • RxDBAdapterSqlite:接入 @aiao/rxdb 的适配器实现
  • sqliteLoad / resetSqliteLoadCache:WASM 加载与缓存控制
  • 类型:SqliteOptionsSqliteLoadOptionsSqliteRepositoryConstructor

适配器共享内核(表名解析、规则编译、基础 Repository)来自 @aiao/rxdb-adapter-sqlite-core

文档

License

MIT

Classes

ClassDescription
RxDBAdapterSqliteBackend-agnostic base class for SQLite adapters.
RxDBAdapterSqliteErrorRxDB SQLite 适配器错误类
SqliteClientShared base class for SQLite clients that wrap an oo1.DB-style runtime (@sqlite.org/sqlite-wasm, @sqliteai/sqlite-wasm, ...).
SqliteRepository操作 entity 仓库

Interfaces

InterfaceDescription
GenerateSqlResult-
RxDBAdapterSqliteBaseBackend-agnostic base class for SQLite adapters.
SqliteOfficialOptions-

Type Aliases

Type AliasDescription
SqliteLoadOptions-
SqliteOfficialRepositoryConstructor-

Variables

VariableDescription
buildRuleGroup生成 ruleGroup sql 查询条件
ROWIDsqlite 行 id 列名
sqliteGetTableName获取表名
sqliteGetTableNameByMetadata通过元数据获取表名

Functions

FunctionDescription
createSqliteClient-
resetSqliteLoadCache-
sqliteLoad-

References

resetSqliteOfficialLoadCache

Renames and re-exports resetSqliteLoadCache


RxDBAdapterSqliteOfficial

Renames and re-exports RxDBAdapterSqlite


SqliteOfficialClient

Renames and re-exports SqliteClient


sqliteOfficialLoad

Renames and re-exports sqliteLoad


SqliteOfficialLoadOptions

Renames and re-exports SqliteLoadOptions


SqliteOptions

Renames and re-exports SqliteOfficialOptions


SqliteRepositoryConstructor

Renames and re-exports SqliteOfficialRepositoryConstructor