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 MaxDataPerWrite ¶ added in v0.7.9
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
func MaxRetries ¶ added in v0.7.9
func WatchBufferSize ¶ added in v0.7.9
type Postgres ¶
type Postgres struct { ReadPool *pgxpool.Pool WritePool *pgxpool.Pool Builder squirrel.StatementBuilderType // contains filtered or unexported fields }
Postgres - Structure for Postresql instance
func NewWithSeparateURIs ¶ added in v0.8.5
NewWithSeparateURIs -
func (*Postgres) GetEngineType ¶
GetEngineType - Get the engine type which is postgresql in string
func (*Postgres) GetMaxDataPerWrite ¶ added in v0.7.9
func (*Postgres) GetMaxRetries ¶ added in v0.7.9
func (*Postgres) GetWatchBufferSize ¶ added in v0.7.9
Click to show internal directories.
Click to hide internal directories.