Documentation
¶
Index ¶
- func Bool(value bool) *bool
- func Float32(value float32) *float32
- func Int(value int) *int
- type Logger
- type SlsConn
- func (s *SlsConn) Clean(ctx context.Context) (int, error)
- func (s SlsConn) Close(ctx context.Context) error
- func (s *SlsConn) Connect(ctx context.Context, connectionString string) error
- func (s *SlsConn) ConnectConfig(ctx context.Context, connConfig *pgx.ConnConfig) error
- func (s SlsConn) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
- func (s SlsConn) GetConnection() *pgx.Conn
- func (s SlsConn) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- type SlsConnConfigParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SlsConn ¶
type SlsConn struct {
// contains filtered or unexported fields
}
func New ¶
func New(config SlsConnConfigParams) *SlsConn
func (*SlsConn) ConnectConfig ¶ added in v1.1.0
func (SlsConn) GetConnection ¶
func (s SlsConn) GetConnection() *pgx.Conn
type SlsConnConfigParams ¶
type SlsConnConfigParams struct { MaxConnectionsFreqMs *float32 ManualMaxConnections *bool MaxConnections *int MinConnectionIdleTimeSec *float32 MaxIdleConnectionsToKill *int ConnUtilization *float32 Debug *bool BackoffCapMs *float32 BackoffBaseMs *float32 BackoffDelayMs *float32 BackoffMaxRetries *int }
Click to show internal directories.
Click to hide internal directories.