Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB holds database connections
func InitDbPool ¶
InitDbPool Initialize database connection ppol for PostgreSQL database
func (*DB) CloseDbPool ¶
func (db *DB) CloseDbPool()
CloseDbPool close database connection. Must be called to release connections before exiting from client.
type DbConfig ¶
type DbConfig struct { DbHost string DbPort uint16 DbName string DbUser string DbPwd string //DbTimeout is Connection timeout in seconds //if could not connect to server in given time then giveup and raise error DbTimeout int //DbSSLMode flag to enable disable SSL for database connection DbSSLMode string }
DbConfig is config for disk persistent database
Click to show internal directories.
Click to hide internal directories.