Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶ added in v0.2.0
func NewConnection(ctx context.Context, connectionConfig *ConnectionConfig, iamConfig *IAMConfig) (*pgxpool.Pool, error)
NewConnection Creates a connection pool to the database defined in the ConnectionConfig. If an IAMConfig is given, then it is assumed to be using rds connect and the connection lifetime values will be overwritten.
Types ¶
type ConnectionConfig ¶ added in v0.2.0
type IAMConfig ¶ added in v0.2.0
type IAMConfig struct {
Credentials aws.CredentialsProvider
Region string
}
Click to show internal directories.
Click to hide internal directories.