Expand description
Export and Import functionality for SQLite databases
This module provides conversion between IndexedDB block storage and standard SQLite .db files.
§Features
- Export: Convert IndexedDB blocks to downloadable .db file
- Import: Load .db file into IndexedDB storage
- Validation: Verify SQLite file format integrity
§Architecture
The system works with 4096-byte blocks stored in IndexedDB. Export reads all allocated blocks and concatenates them into a standard SQLite file. Import splits a .db file into blocks and writes them to IndexedDB with proper metadata tracking.
Structs§
- Export
Options - Options for database export operations
Functions§
- export_
database_ to_ bytes - export_
database_ to_ bytes_ streaming - export_
database_ with_ options - parse_
sqlite_ header - Parse SQLite database header to extract metadata
- validate_
export_ size - Validate export size against configured limit
- validate_
sqlite_ file - Validate SQLite database file format
Type Aliases§
- Progress
Callback - Progress callback type for export operations