You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package dialect
|
|
|
|
type Name int
|
|
|
|
func (n Name) String() string {
|
|
switch n {
|
|
case PG:
|
|
return "pg"
|
|
case SQLite:
|
|
return "sqlite"
|
|
case MySQL:
|
|
return "mysql"
|
|
case MSSQL:
|
|
return "mssql"
|
|
default:
|
|
return "invalid"
|
|
}
|
|
}
|
|
|
|
const (
|
|
Invalid Name = iota
|
|
PG
|
|
SQLite
|
|
MySQL
|
|
MSSQL
|
|
)
|