re-org: unexport dialectByName()

pull/2/head
Liam Staskawicz 2013-10-01 13:26:47 -07:00
parent 41c7fe5cfd
commit 1ecf08bd20
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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{}