mirror of https://github.com/pressly/goose.git
re-org: unexport dialectByName()
parent
41c7fe5cfd
commit
1ecf08bd20
|
@ -63,7 +63,7 @@ func NewDBConf(p, env string) (*DBConf, error) {
|
||||||
|
|
||||||
// allow the configuration to override the Dialect for this driver
|
// allow the configuration to override the Dialect for this driver
|
||||||
if dialect, err := f.Get(fmt.Sprintf("%s.dialect", env)); err == nil {
|
if dialect, err := f.Get(fmt.Sprintf("%s.dialect", env)); err == nil {
|
||||||
d.Dialect = DialectByName(dialect)
|
d.Dialect = dialectByName(dialect)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !d.IsValid() {
|
if !d.IsValid() {
|
||||||
|
|
|
@ -13,7 +13,7 @@ type SqlDialect interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
// drivers that we don't know about can ask for a dialect by name
|
// drivers that we don't know about can ask for a dialect by name
|
||||||
func DialectByName(d string) SqlDialect {
|
func dialectByName(d string) SqlDialect {
|
||||||
switch d {
|
switch d {
|
||||||
case "postgres":
|
case "postgres":
|
||||||
return &PostgresDialect{}
|
return &PostgresDialect{}
|
||||||
|
|
Loading…
Reference in New Issue