open_sqlite3.go 236 B

123456789101112131415
  1. //go:build sqlite3
  2. // +build sqlite3
  3. package database
  4. import (
  5. "gorm.io/driver/mysql"
  6. "gorm.io/driver/sqlite"
  7. "gorm.io/gorm"
  8. )
  9. var opens = map[string]func(string) gorm.Dialector{
  10. "mysql": mysql.Open,
  11. "sqlite3": sqlite.Open,
  12. }