Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exec ¶
type Exec interface { Exec(query string, args ...interface{}) (sql.Result, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) }
Exec sql stmt
type Get ¶
type Get interface { Get(dest interface{}, query string, args ...interface{}) error GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error }
Get is select only one row
type Named ¶
type Named interface { PrepareNamed(query string) (*sqlx.NamedStmt, error) NamedExec(query string, arg interface{}) (sql.Result, error) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error) }
Named support named argument in stmt
type Queryx ¶
type Queryx interface { Queryx(query string, args ...interface{}) (*sqlx.Rows, error) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error) }
Queryx support query row
type Result ¶
type Result interface {
Scan(value interface{}) (err error)
}
Result for select column
type Select ¶
type Select interface { Select(dest interface{}, query string, args ...interface{}) error SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error }
Select multiple rows
type Transaction ¶
Transaction for db connection
type Transactionx ¶
type Transactionx interface { Queryx Rebind Transaction }
Transactionx more interface for Transaction
Click to show internal directories.
Click to hide internal directories.