You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
284 B
27 lines
284 B
2 years ago
|
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
|
||
|
)
|