open.go 186 B

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