summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/dialect/dialect.go
blob: 03b81fbbc35fe0197123f1e8887f232eb111358b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
)