Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPQDatabase ¶ added in v0.3.8
MockPQDatabase simulates the behavior of a real PQDatabase.
func (*MockPQDatabase) Close ¶ added in v0.3.8
func (m *MockPQDatabase) Close() error
func (*MockPQDatabase) GetEngineType ¶ added in v0.3.8
func (m *MockPQDatabase) GetEngineType() string
type Option ¶
type Option func(*Postgres)
Option - Option type
func MaxConnectionIdleTime ¶ added in v0.2.3
MaxConnectionIdleTime - Defines maximum connection idle for postgresql db
func MaxConnectionLifeTime ¶ added in v0.2.3
MaxConnectionLifeTime - Defines maximum connection lifetime for postgresql db
func MaxIdleConnections ¶ added in v0.2.3
MaxIdleConnections - Defines maximum idle connections for postgresql db
func MaxOpenConnections ¶ added in v0.2.0
MaxOpenConnections - Defines maximum open connections for postgresql db
type Postgres ¶
type Postgres struct { DB *sql.DB Builder squirrel.StatementBuilderType // contains filtered or unexported fields }
Postgres - Structure for Postresql instance
func (*Postgres) GetEngineType ¶
GetEngineType - Get the engine type which is postgresql in string
Click to show internal directories.
Click to hide internal directories.