mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-24 01:48:16 +03:00
29007b1b88
* update bun libraries to v1.2.5 * pin old v1.29.0 of otel
29 lines
324 B
Go
29 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
|
|
)
|