mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-18 16:31:06 +00:00
29007b1b88
* update bun libraries to v1.2.5 * pin old v1.29.0 of otel
30 lines
324 B
Go
30 lines
324 B
Go
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"
|
|
case Oracle:
|
|
return "oracle"
|
|
default:
|
|
return "invalid"
|
|
}
|
|
}
|
|
|
|
const (
|
|
Invalid Name = iota
|
|
PG
|
|
SQLite
|
|
MySQL
|
|
MSSQL
|
|
Oracle
|
|
)
|