FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: Add Database#serialize and Database#deserialize methods by Maaarcocr · Pull Request #685 · sparklemotion/sqlite3-ruby · GitHub

feat: Add Database#serialize and Database#deserialize methods - #685

Open
Maaarcocr wants to merge 3 commits into
sparklemotion:mainfrom
Maaarcocr:new-main
Open

feat: Add Database#serialize and Database#deserialize methods #685
Maaarcocr wants to merge 3 commits into
sparklemotion:mainfrom
Maaarcocr:new-main

Conversation

Copy link
Copy Markdown

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 and others added 3 commits December 19, 2025 13:08
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).

Copy link
Copy Markdown
Member

@Maaarcocr The test suite failure seems legit. Let me know if you need assistance getting unblocked!

Copy link
Copy Markdown
Author

@Maaarcocr The test suite failure seems legit. Let me know if you need assistance getting unblocked!

sorry for the delay, getting to this only now. the issue I have is that I can't currently replicate. I run the test with no issues on my machine. could it be an OS issue? or a sqlite version issue?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL