func init() { myconn, err := pop.Connect("mysql") if err != nil { panic(err.Error()) } deets := myconn.Dialect.Details() myt = translators.NewMySQL(myconn.URL(), deets.Database) }
func init() { pop.Debug = false pop.AddLookupPaths("./") dialect := os.Getenv("SODA_DIALECT") var err error PDB, err = pop.Connect(dialect) if err != nil { log.Panic(err) } pop.MapTableName("Friend", "good_friends") pop.MapTableName("Friends", "good_friends") }