Documentation
¶
Index ¶
Constants ¶
View Source
const ( MySQL = dbdriver.EngineMySQL PostgreSQL = dbdriver.EnginePostgreSQL Unknown = dbdriver.EngineUnknown )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func NewDatabase(conf *config.DatabaseConfig, dbType DBType, queryTimeout int, log *nlog.Log) *Database
NewDatabase creates the new database tuple.
func (*Database) Driver ¶ added in v0.2.0
Driver returns the HA database facade (preferred for new code).
func (*Database) GetMysql ¶
GetMysql returns the MySQL handle. Deprecated: use Driver(); retained for raft/RPC migration.
func (*Database) GetPostgreSQL ¶
func (d *Database) GetPostgreSQL() *postgresql.Postgresql
Directories
¶
| Path | Synopsis |
|---|---|
|
Package driver defines the L4 database abstraction for HA orchestration.
|
Package driver defines the L4 database abstraction for HA orchestration. |
Click to show internal directories.
Click to hide internal directories.