summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/dialect/dialect.go
blob: 9ff8b2461520f0473fe7cc2789d8baf12c35de25 (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 MySQL5:
		return "mysql5"
	case MySQL8:
		return "mysql8"
	default:
		return "invalid"
	}
}

const (
	Invalid Name = iota
	PG
	SQLite
	MySQL5
	MySQL8
)