Documentation ¶
Index ¶
- type DBPostgres
- func (db *DBPostgres) Begin() (Tx, error)
- func (db *DBPostgres) Dependencies() []service.Service
- func (db *DBPostgres) ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
- func (db *DBPostgres) Name() string
- func (db *DBPostgres) QueryContext(ctx context.Context, query string, args ...interface{}) (Rows, error)
- func (db *DBPostgres) QueryRowContext(ctx context.Context, query string, args ...interface{}) Row
- func (db *DBPostgres) Start() error
- func (db *DBPostgres) Stop() error
- type Result
- type Row
- type Rows
- type Service
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBPostgres ¶
type DBPostgres struct {
// contains filtered or unexported fields
}
func NewDBPostgres ¶
func NewDBPostgres(connString string) *DBPostgres
func (*DBPostgres) Begin ¶
func (db *DBPostgres) Begin() (Tx, error)
func (*DBPostgres) Dependencies ¶
func (db *DBPostgres) Dependencies() []service.Service
func (*DBPostgres) ExecContext ¶
func (*DBPostgres) Name ¶
func (db *DBPostgres) Name() string
func (*DBPostgres) QueryContext ¶
func (*DBPostgres) QueryRowContext ¶
func (db *DBPostgres) QueryRowContext(ctx context.Context, query string, args ...interface{}) Row
func (*DBPostgres) Start ¶
func (db *DBPostgres) Start() error
func (*DBPostgres) Stop ¶
func (db *DBPostgres) Stop() error
Click to show internal directories.
Click to hide internal directories.