Documentation
¶
Index ¶
- type Connection
- func (c *Connection) Close() error
- func (c *Connection) Connect(ctx context.Context) (*sqlx.DB, error)
- func (c *Connection) Database() config.Database
- func (c *Connection) ExtContext(ctx context.Context) (sqlx.ExtContext, error)
- func (c *Connection) Transact(ctx context.Context, fn func(context.Context) error) error
- type Pool
- type Transactioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(cfg config.Database) *Connection
func NewOpenedConnection ¶
func NewOpenedConnection(db *sqlx.DB) (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) Database ¶
func (c *Connection) Database() config.Database
func (*Connection) ExtContext ¶
func (c *Connection) ExtContext(ctx context.Context) (sqlx.ExtContext, error)
Click to show internal directories.
Click to hide internal directories.