12345678910111213141516171819 |
- //go:build sqlite3
- // +build sqlite3
- package database
- import (
- "gorm.io/driver/mysql"
- "gorm.io/driver/postgres"
- "gorm.io/driver/sqlite"
- "gorm.io/driver/sqlserver"
- "gorm.io/gorm"
- )
- var opens = map[string]func(string) gorm.Dialector{
- "mysql": mysql.Open,
- "postgres": postgres.Open,
- "sqlite3": sqlite.Open,
- "sqlserver": sqlserver.Open,
- }
|