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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! First of all Thank you for this project 馃尫
How i can benefit from other features with the modernc.org/sqlite driver?
modernc.org/sqlite
For example, I can create a custom SQLite function by writing this:
import sqlite "modernc.org/sqlite" func main() { // register a new sqlite function! easily: (e.g SELECT new_id();) sqlite.MustRegisterScalarFunction("new_id", 0, newID) // .... }
But this function (and others) doesn't appear in your driver.
Thanks 馃
The text was updated successfully, but these errors were encountered:
Sure, you must directly use the underlying driver, which is a slight fork of modernc.org/sqlite
import ( sqliteDriver "github.com/glebarez/go-sqlite" "github.com/glebarez/sqlite" "gorm.io/gorm" ) // register a new sqlite function! easily: (e.g SELECT new_id();) sqliteDriver.MustRegisterScalarFunction("new_id", 0, newID) // create GORM DB db, err := gorm.Open(sqlite.Open("sqlite.db"), &gorm.Config{})
Sorry, something went wrong.
Thanks!
No branches or pull requests
Hi! First of all Thank you for this project 馃尫
How i can benefit from other features with the
modernc.org/sqlite
driver?For example, I can create a custom SQLite function by writing this:
But this function (and others) doesn't appear in your driver.
Thanks 馃
The text was updated successfully, but these errors were encountered: