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 加载与缓存控制- 类型:
SqliteOptions、SqliteLoadOptions、SqliteRepositoryConstructor等
适配器共享内核(表名解析、规则编译、基础 Repository)来自 @aiao/rxdb-adapter-sqlite-core。
文档
- 仓库主页:https://github.com/aiao-io/aiao
- 适配器与存储后端指南见项目文档站
License
Classes
| Class | Description |
|---|---|
| RxDBAdapterSqlite | Backend-agnostic base class for SQLite adapters. |
| RxDBAdapterSqliteError | RxDB SQLite 适配器错误类 |
| SqliteClient | Shared base class for SQLite clients that wrap an oo1.DB-style runtime (@sqlite.org/sqlite-wasm, @sqliteai/sqlite-wasm, ...). |
| SqliteRepository | 操作 entity 仓库 |
Interfaces
| Interface | Description |
|---|---|
| GenerateSqlResult | - |
| RxDBAdapterSqliteBase | Backend-agnostic base class for SQLite adapters. |
| SqliteOfficialOptions | - |
Type Aliases
| Type Alias | Description |
|---|---|
| SqliteLoadOptions | - |
| SqliteOfficialRepositoryConstructor | - |
Variables
| Variable | Description |
|---|---|
| buildRuleGroup | 生成 ruleGroup sql 查询条件 |
| ROWID | sqlite 行 id 列名 |
| sqliteGetTableName | 获取表名 |
| sqliteGetTableNameByMetadata | 通过元数据获取表名 |
Functions
| Function | Description |
|---|---|
| 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