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
func Open(dsn string) gorm.Dialector { return &Dialector{DSN: dsn} }
Open is the factory func of sqlite driver to generate a gorm.Dialector, but not open a db connection in actual. Maybe named New is more reasonable.
Open
sqlite
gorm.Dialector
New
The same as other drivers.
The text was updated successfully, but these errors were encountered:
Thank you for your feedback, I am thinking to use Open just accepts DSN, and the New method accepts more configurations than DSN like the MySQL driver https://github.com/go-gorm/mysql/blob/aca31f41d71bc2322361afd646f7241497b2b652/mysql.go#L27-L33
Any suggestion?
Sorry, something went wrong.
That's great. Thank you for your job.
Merge pull request go-gorm#2 from glebarez/dev
192f58d
Dev
No branches or pull requests
Open
is the factory func ofsqlite
driver to generate agorm.Dialector
, but not open a db connection in actual. Maybe namedNew
is more reasonable.The same as other drivers.
The text was updated successfully, but these errors were encountered: