wg-portal/internal/config/database.go
2023-02-12 23:13:04 +01:00

16 lines
468 B
Go

package config
type SupportedDatabase string
const (
DatabaseMySQL SupportedDatabase = "mysql"
DatabaseMsSQL SupportedDatabase = "mssql"
DatabasePostgres SupportedDatabase = "postgres"
DatabaseSQLite SupportedDatabase = "sqlite"
)
type DatabaseConfig struct {
Type SupportedDatabase `yaml:"type"`
DSN string `yaml:"dsn"` // On SQLite: the database file-path, otherwise the dsn (see: https://gorm.io/docs/connecting_to_the_database.html)
}