Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create .spin/sqlite_db.db only if needed #1799

Merged

Conversation

itowlson
Copy link
Contributor

Fixes #1791.

This follows the pattern from the key-value-sqlite crate.

Note this moves creation failures to first use rather than trigger initialisation - I couldn't see a way around that without significant surgery and significant divergence from the established KV pattern. (But if there is one then it would be great to backport it to KV.)

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@itowlson itowlson merged commit 8cb61d9 into fermyon:main Sep 25, 2023
9 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.

Don't create .spin/sqlite_db unless the application uses it
3 participants