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

Support litestack/litedb #280

Closed
wants to merge 1 commit into from
Closed

Conversation

woahdae
Copy link

@woahdae woahdae commented Mar 11, 2024

Litestack (https://github.com/oldmoe/litestack) provides a production-optimized wrapper around the SQLite3 gem, and names its adapter "litedb" (i.e. adapter: litedb in database.yml).

Previously, this project threw an "unsupported adapter: litedb" error, even though litedb is just SQLite3 with some production tweaks.

This adds support for litestack/litedb by registering both names to point to Groupdate::Adapters::SQLiteAdapter.

I looked through the test suite, and didn't see a good place to test this change. If you'd like to add litestack as a test dependency so we can make sure it doesn't throw an error I can add that, but I'll tell you too, I booted this up in a litestack-based app and it works great.

Litestack (https://github.com/oldmoe/litestack) provides a
production-optimized wrapper around the SQLite3 gem, and names its
adapter "litedb" (i.e. `adapter: litedb` in database.yml).

Previously, this project threw an "unsupported adapter: litedb" error,
even though litedb is just SQLite3 with some production tweaks.

This adds support for litestack/litedb by registering both names to
point to Groupdate::Adapters::SQLiteAdapter.
@ankane
Copy link
Owner

ankane commented Mar 11, 2024

Hi @woahdae, thanks for the PR, but check out #277.

@ankane ankane closed this Mar 11, 2024
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.

None yet

2 participants