open.go 309 B

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