We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey @RussellLuo
I wonder how tricky it would be to support SQLite with dbtest ?
I use SQLite with Marmot: https://github.com/maxpert/marmot, so that I can run many SQLite instances and keep them in global sync using NATS.
Marmot runs as a separate Process and uses the SQLITE WAL to do its thing.
ddtest would make it easy to test Marmot, and SQLite DB,s in general.
I current use this SQLite DB: https://github.com/ncruces/go-sqlite3
Here is one way for dbTest to supports many databases ...
https://github.com/sqlc-dev/plugin-sdk-go offers a plugin Architecture so that different DB's can be supported with Sqlc. Sqlc is a code generator, not an ORM. It's There are many DBs supported: https://github.com/sqlc-dev/plugin-sdk-go/network/dependents pretty light.
Here is a plunge for the Sqlite DB: https://github.com/zombiezen/go-sqlite.
https://github.com/delaneyj/toolbelt/blob/main/sqlc-gen-zombiezen/zombiezen/gen.go
Here is a plugin for MySQL and SQLite.
https://github.com/crdx/starfield
Anyways lets me know what you think.
The text was updated successfully, but these errors were encountered:
Hi @gedw99, sorry for the delayed response.
By design, any database that implements the following interface can be used in dbtest:
dbtest
dbtest/builtin/fixture.go
Lines 9 to 14 in d0b8ee3
And for convenience, sql.DB is a built-in support for databases compatible with Go's database/sql.
database/sql
According to the description of go-sqlite3, it's compatible with Go's database/sql. So I guess you can use the built-in sql.DB directly:)
Sorry, something went wrong.
No branches or pull requests
Hey @RussellLuo
I wonder how tricky it would be to support SQLite with dbtest ?
I use SQLite with Marmot: https://github.com/maxpert/marmot, so that I can run many SQLite instances and keep them in global sync using NATS.
Marmot runs as a separate Process and uses the SQLITE WAL to do its thing.
ddtest would make it easy to test Marmot, and SQLite DB,s in general.
I current use this SQLite DB: https://github.com/ncruces/go-sqlite3
Here is one way for dbTest to supports many databases ...
https://github.com/sqlc-dev/plugin-sdk-go offers a plugin Architecture so that different DB's can be supported with Sqlc. Sqlc is a code generator, not an ORM. It's There are many DBs supported: https://github.com/sqlc-dev/plugin-sdk-go/network/dependents
pretty light.
Some examples
Here is a plunge for the Sqlite DB: https://github.com/zombiezen/go-sqlite.
https://github.com/delaneyj/toolbelt/blob/main/sqlc-gen-zombiezen/zombiezen/gen.go
Here is a plugin for MySQL and SQLite.
https://github.com/crdx/starfield
Anyways lets me know what you think.
The text was updated successfully, but these errors were encountered: