Documentation ¶
Index ¶
- func Delete(ctx Context, e Executable, in Modifiable) error
- func Insert(ctx Context, e Executable, in Modifiable) (int64, error)
- func QueryContext(ctx Context, s Selectable, query string, args ...interface{}) (*sql.Rows, error)
- func QueryRowContext(ctx Context, s Selectable, query string, args ...interface{}) *sql.Row
- func Select(ctx Context, s Selectable, out interface{}, fragment string, ...) error
- func SelectRow(ctx Context, s Selectable, out interface{}, fragment string, ...) error
- func Update(ctx Context, e Executable, in Modifiable) error
- type Context
- type Executable
- type Generator
- type Mappable
- type Modifiable
- type RowScanner
- type Selectable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(ctx Context, e Executable, in Modifiable) error
func Insert ¶
func Insert(ctx Context, e Executable, in Modifiable) (int64, error)
func QueryContext ¶ added in v0.2.2
func QueryRowContext ¶ added in v0.2.2
func QueryRowContext(ctx Context, s Selectable, query string, args ...interface{}) *sql.Row
func Select ¶
func Select(ctx Context, s Selectable, out interface{}, fragment string, args ...interface{}) error
func SelectRow ¶
func SelectRow(ctx Context, s Selectable, out interface{}, fragment string, args ...interface{}) error
func Update ¶
func Update(ctx Context, e Executable, in Modifiable) error
Types ¶
type Executable ¶
type Mappable ¶
type Mappable interface { Table() string Columns() []string Scan(r RowScanner) error }
type Modifiable ¶
type RowScanner ¶
type RowScanner interface {
Scan(dest ...interface{}) error
}
Click to show internal directories.
Click to hide internal directories.