Documentation ¶
Index ¶
- Variables
- type Database
- type PGDatabase
- func (d PGDatabase) Close()
- func (d PGDatabase) Exec(ctx context.Context, query string, params ...interface{}) (sql.Result, error)
- func (d PGDatabase) Many(ctx context.Context, query string, params ...interface{}) (*sql.Rows, error)
- func (d PGDatabase) One(ctx context.Context, query string, params ...interface{}) *sql.Row
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRows = sql.ErrNoRows
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Many(ctx context.Context, query string, params ...interface{}) (*sql.Rows, error) One(ctx context.Context, query string, params ...interface{}) *sql.Row Exec(ctx context.Context, query string, params ...interface{}) (sql.Result, error) Close() }
func NewPGDatabase ¶
func NewPGDatabase() Database
type PGDatabase ¶
type PGDatabase struct {
// contains filtered or unexported fields
}
func (PGDatabase) Close ¶
func (d PGDatabase) Close()
Click to show internal directories.
Click to hide internal directories.