Example #1
0
func init() {
	dat.Dialect = postgres.New()
	sqlDB = realDb()
	testDB = NewDB(sqlDB, "postgres")
	dat.Strict = false

	Cache = kvs.NewMemoryKeyValueStore(1 * time.Second)
	//Cache, _ = kvs.NewDefaultRedisStore()
}
Example #2
0
func init() {
	dat.Dialect = postgres.New()
	logger = log.New("dat:sqlx")
}
Example #3
0
func init() {
	Dialect = postgres.New()
}