mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-12 14:40:22 +08:00
99332228da
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added indexed clock management capabilities for documents, enabling
get, set, and clear operations across Android, iOS, Electron, and web
platforms.
* **Refactor**
* Improved storage architecture to dynamically select platform-specific
implementations (SQLite for Electron, IndexedDB for others).
* **Bug Fixes**
* Enhanced document operations to properly maintain and clean up indexer
synchronization state during document lifecycle changes.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
25 lines
778 B
TypeScript
25 lines
778 B
TypeScript
import type { StorageConstructor } from '..';
|
|
import { SqliteBlobStorage } from './blob';
|
|
import { SqliteBlobSyncStorage } from './blob-sync';
|
|
import { SqliteDocStorage } from './doc';
|
|
import { SqliteDocSyncStorage } from './doc-sync';
|
|
import { SqliteIndexerStorage } from './indexer';
|
|
import { SqliteIndexerSyncStorage } from './indexer-sync';
|
|
|
|
export * from './blob';
|
|
export * from './blob-sync';
|
|
export { bindNativeDBApis, type NativeDBApis } from './db';
|
|
export * from './doc';
|
|
export * from './doc-sync';
|
|
export * from './indexer';
|
|
export * from './indexer-sync';
|
|
|
|
export const sqliteStorages = [
|
|
SqliteDocStorage,
|
|
SqliteBlobStorage,
|
|
SqliteDocSyncStorage,
|
|
SqliteBlobSyncStorage,
|
|
SqliteIndexerStorage,
|
|
SqliteIndexerSyncStorage,
|
|
] satisfies StorageConstructor[];
|