Documentation ¶
Index ¶
- Variables
- func Connect(dbType, name string, cfg Config) error
- func ConnectMysql(conn Config) (*sql.DB, error)
- func EnableDescCache(ttl time.Duration) error
- func Register(name string, cf ConnectFunc)
- func SetGlobalSession(key string, conn *Config) error
- type Config
- type ConnectFunc
- type Field
- type Session
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnableDiskCache bool DiskCacheTTL time.Duration )
Functions ¶
func EnableDescCache ¶ added in v0.1.1
func Register ¶
func Register(name string, cf ConnectFunc)
func SetGlobalSession ¶ added in v0.1.1
Types ¶
type ConnectFunc ¶
Click to show internal directories.
Click to hide internal directories.