This commit updates the dependencies, vendor files and updates tests to take into account changes to the DB driver. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| ddlmod.go | ||
| error_translator.go | ||
| errors.go | ||
| License | ||
| migrator.go | ||
| README.md | ||
| sqlite.go | ||
GORM Sqlite Driver
USAGE
import (
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
// github.com/mattn/go-sqlite3
db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})
Checkout https://gorm.io for details.
Pure go Sqlite Driver
checkout https://github.com/glebarez/sqlite for details
import (
"github.com/glebarez/sqlite"
"gorm.io/gorm"
)
db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})