Skip to main content

Module export

Module export 

Source
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§

ExportOptions
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§

ProgressCallback
Progress callback type for export operations