open_sqlite3.go 354 B

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