Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CockroachDB ¶
CockroachDB is a conf for the mysql database
func (CockroachDB) NewDBHandler ¶
func (CockroachConf CockroachDB) NewDBHandler() (*sqlx.DB, error)
NewDBHandler connect to db and return the connection
type MySQLDB ¶
type MySQLDB struct { Protocol string Host string Port string User string Password string Dbname string }
MySQLDB is a conf for the mysql database
type PostgresDB ¶
PostgresDB is a conf for the mysql database
func (PostgresDB) NewDBHandler ¶
func (PostgresConf PostgresDB) NewDBHandler() (*sqlx.DB, error)
NewDBHandler connect to db and return the connection
Click to show internal directories.
Click to hide internal directories.