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

Add support for rqlite #444

Open
wchiquito opened this issue Oct 8, 2024 · 2 comments
Open

Add support for rqlite #444

wchiquito opened this issue Oct 8, 2024 · 2 comments
Labels
driver-impl Implementation of a sq DB driver enhancement help wanted

Comments

@wchiquito
Copy link

Additional context
Could use this Go driver: gorqlite (https://github.com/rqlite/gorqlite).

@neilotoole
Copy link
Owner

@wchiquito: I've been tracking rqlite for several years, I'd love to add support. (Shout out to my fellow O'Toole in databases, @otoolep... apparently databases run in the family).

The way sq is currently built, only DBs that support the Go stdlib database/sql driver mechanism can be added. (Although that could be fixed with an appropriate level of abstraction). I see that there is indeed such a driver for rqlite, so rqlite support seems doable.

I need to write up a "How to write a sq driver" document. At this time, if anybody is interested in starting on rqlite support, please reach out.

@otoolep
Copy link

otoolep commented Oct 13, 2024

Thanks @neilotoole -- yes, amusing coincidence. Happy to answer any questions on rqlite if it helps.

Yeah, that driver was added in the last year. As long as you can accept a driver that doesn't support traditional transaction support, it should work I believe (rqlite supports a different type of transaction than what most relational databases support, due to the nature of the HTTP API).

@neilotoole neilotoole added the driver-impl Implementation of a sq DB driver label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
driver-impl Implementation of a sq DB driver enhancement help wanted
Projects
None yet
Development

No branches or pull requests

6 participants
@otoolep @wchiquito @neilotoole and others