dialect.go (284B)
1 package dialect 2 3 type Name int 4 5 func (n Name) String() string { 6 switch n { 7 case PG: 8 return "pg" 9 case SQLite: 10 return "sqlite" 11 case MySQL: 12 return "mysql" 13 case MSSQL: 14 return "mssql" 15 default: 16 return "invalid" 17 } 18 } 19 20 const ( 21 Invalid Name = iota 22 PG 23 SQLite 24 MySQL 25 MSSQL 26 )