Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresConfiguer ¶
type PostgresConfiguer interface {
URI() string
}
type PostgresConnection ¶
PostgresConnection holds db conn
func NewPostgresConnection ¶
func NewPostgresConnection() *PostgresConnection
func (*PostgresConnection) Connect ¶
func (p *PostgresConnection) Connect(ctx context.Context, cfg PostgresConfiguer)
Connect make connect and ping db
func (*PostgresConnection) Disconnect ¶ added in v1.1.1
func (p *PostgresConnection) Disconnect(ctx context.Context)
Close close connection
Click to show internal directories.
Click to hide internal directories.