Documentation ¶
Index ¶
- func WithApplicationName(applicationName string) runtime.Configuration[*PostgresqlConnection]
- func WithConnectionString(connectionString string) runtime.Configuration[*PostgresqlConnection]
- func WithMaxOpenConnections(maxOpenConns int) runtime.Configuration[*PostgresqlConnection]
- type BunConnection
- type PostgresqlConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithApplicationName ¶
func WithApplicationName(applicationName string) runtime.Configuration[*PostgresqlConnection]
func WithConnectionString ¶
func WithConnectionString(connectionString string) runtime.Configuration[*PostgresqlConnection]
configuration
func WithMaxOpenConnections ¶
func WithMaxOpenConnections(maxOpenConns int) runtime.Configuration[*PostgresqlConnection]
Types ¶
type BunConnection ¶
func NewPostgresqlConnection ¶
func NewPostgresqlConnection(configurations ...runtime.Configuration[*PostgresqlConnection]) BunConnection
constructor
type PostgresqlConnection ¶
type PostgresqlConnection struct { ConnectionString string ApplicationName string MaxOpenConns int // contains filtered or unexported fields }
implementation
func (*PostgresqlConnection) Db ¶
func (r *PostgresqlConnection) Db() bun.IDB
func (*PostgresqlConnection) Start ¶
func (r *PostgresqlConnection) Start() error
func (*PostgresqlConnection) Stop ¶
func (r *PostgresqlConnection) Stop()
Click to show internal directories.
Click to hide internal directories.