Skip to content

Conversation

@Maaarcocr
Copy link

Add support for sqlite3_serialize() and sqlite3_deserialize() which allow serializing an in-memory database to a binary string and restoring it later.

These methods are useful for:

  • Creating snapshots of in-memory databases
  • Transferring database contents between connections
  • Backing up and restoring database state

The methods are only available when SQLite is compiled without SQLITE_OMIT_DESERIALIZE (requires SQLite >= 3.23.0).

Add support for sqlite3_serialize() and sqlite3_deserialize() which
allow serializing an in-memory database to a binary string and
restoring it later.

These methods are useful for:
- Creating snapshots of in-memory databases
- Transferring database contents between connections
- Backing up and restoring database state

The methods are only available when SQLite is compiled without
SQLITE_OMIT_DESERIALIZE (requires SQLite >= 3.23.0).
@Maaarcocr Maaarcocr changed the title feat: Add Database#serialize and Database#deserialize methods Add Database#serialize and Database#deserialize methods Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant