Skip to content

Document saving an in-memory database with SQLite.backup - #350

Merged
quinnj merged 3 commits into
JuliaDatabases:masterfrom
JohnCobbler:fix/210-inmemory-backup-docs
Sep 23, 2026
Merged

quinnj merged 3 commits into
JuliaDatabases:masterfrom
JohnCobbler:fix/210-inmemory-backup-docs

Conversation

@JohnCobbler

Copy link
Copy Markdown
Contributor

Adds a short "Saving an in-memory database to a file" section to the docs with a working example using the SQLite.backup API added in #347, and lists SQLite.backup in the API reference (its docstring was not previously referenced anywhere in the built docs).

Addresses #210 — the long-standing "how do I persist an in-memory DB" question now has a documented answer.

Docs-only change; example verified against SQLite.jl on Julia 1.11.

Add a FAQ-style section showing how to persist an in-memory database to
a file using the backup API, and list SQLite.backup in the API reference.

Addresses JuliaDatabases#210
@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.81%. Comparing base (95131f8) to head (73eb515).
⚠️ Report is 23 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #350      +/-   ##
==========================================
+ Coverage   94.13%   95.81%   +1.68%     
==========================================
  Files           4        4              
  Lines         563      622      +59     
==========================================
+ Hits          530      596      +66     
+ Misses         33       26       -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@quinnj quinnj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Reviewed by AI] No actionable findings at 1c05cd7. I ran the backup example on Julia 1.12.6, closed the source connection, and reopened the saved file. Both rows and the returned path matched the documentation. The API-reference entry matches the existing SQLite.backup docstring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@quinnj
quinnj merged commit c122eee into JuliaDatabases:master Sep 23, 2026
8 checks passed
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.

2 participants