Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PgInfrastructure ¶
PgInfrastructure returns a newly initialized sql.DB struct that implements the sql.DBFactory interface.
func (*PgInfrastructure) GetDB ¶
func (s *PgInfrastructure) GetDB() (*sql.DB, error)
GetDB gets database connection
func (*PgInfrastructure) OpenConnection ¶
func (s *PgInfrastructure) OpenConnection(connString string, retry, timeout, concurrent int)
OpenConnection gets a handle for a database
Click to show internal directories.
Click to hide internal directories.