func init() { dat.Dialect = postgres.New() sqlDB = realDb() testDB = NewDB(sqlDB, "postgres") dat.Strict = false Cache = kvs.NewMemoryKeyValueStore(1 * time.Second) //Cache, _ = kvs.NewDefaultRedisStore() }
func init() { dat.Dialect = postgres.New() logger = log.New("dat:sqlx") }
func init() { Dialect = postgres.New() }