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

SQLite backend for the database API #263

Open
flaki opened this issue May 24, 2022 · 0 comments
Open

SQLite backend for the database API #263

flaki opened this issue May 24, 2022 · 0 comments
Labels
devex Developer experience-related issues runnable-api

Comments

@flaki
Copy link

flaki commented May 24, 2022

It feels like we are not missing much to be able to support SQLite as an SQL connection backend, which would be a big DevEx win, especially for bootstrappers.

As @jagger27 points out "SQLite is not particularly connection-oriented", but being able to start from a dependency-free SQL connection in local dev, and switching that to something more production-ready (MySQL, Postgres) when deploying would make for a much more seamless developer experience then fiddling with Docker Compose scripts and local Postgres instances.

connections > database in the Directive.yaml already has all we need:

# ...
connections:
  database:
    type: sqlite

Initially that's all we would need, we could use the simplicity (and e.g. lack of further configuration, such as storage filename) to further imply this is not intended for more complex apps, but to provide a "baseline" persistent storage.

With this people could build their persistence model quickly and swap out the storage model for their production deployment.

In the future we could build on this sqlite support to expand to more production-ready configs, like Litestream.

@flaki flaki added devex Developer experience-related issues runnable-api labels May 24, 2022
@flaki flaki changed the title SQLite backend for the SQL API SQLite backend for the database API May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devex Developer experience-related issues runnable-api
Projects
None yet
Development

No branches or pull requests

1 participant