Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *runner.DB
global database (pooling provided by SQL driver)
Functions ¶
Types ¶
type Config ¶
type Config struct { ConnectString string Cache KeyStore MaxIdleCons int MaxOpenCons int EnableQueryInterp bool ProdMode bool LogQueriesThreshold time.Duration }
ConnectString should look something like "dbname=dat_test user=dat password=!test host=localhost sslmode=disable"
type KeyStore ¶
type KeyStore interface {
GetStore() kvs.KeyValueStore
}
If GetStore is nil, no caching is done
Click to show internal directories.
Click to hide internal directories.