Documentation ¶
Index ¶
- Variables
- type ExecResult
- type GDO
- func (g GDO) BeginTx() (Transaction, error)
- func (g GDO) BeginTxContext(ctx context.Context, opts *sql.TxOptions) (Transaction, error)
- func (g GDO) Exec(s *Statement) (ExecResult, error)
- func (g GDO) ExecContext(ctx context.Context, s *Statement) (ExecResult, error)
- func (g GDO) Prepare(query string) (*PreparedStatement, error)
- func (g GDO) PrepareContext(ctx context.Context, query string) (*PreparedStatement, error)
- func (g GDO) Query(s *Statement) (QueryResult, error)
- func (g GDO) QueryContext(ctx context.Context, s *Statement) (QueryResult, error)
- func (g GDO) QueryRow(s *Statement) QueryRowResult
- func (g GDO) QueryRowContext(ctx context.Context, s *Statement) QueryRowResult
- type GDOResult
- type PreparedStatement
- func (ps *PreparedStatement) Exec() (ExecResult, error)
- func (ps *PreparedStatement) ExecContext(ctx context.Context) (ExecResult, error)
- func (ps *PreparedStatement) Query() (QueryResult, error)
- func (ps *PreparedStatement) QueryContext(ctx context.Context) (QueryResult, error)
- func (ps *PreparedStatement) QueryRow() QueryRowResult
- func (ps *PreparedStatement) QueryRowContext(ctx context.Context) QueryRowResult
- type QueryResult
- type QueryRowResult
- type Row
- func (r Row) Bool(col string) (bool, error)
- func (r Row) Bytes(col string) ([]byte, error)
- func (r Row) Float32(col string) (float32, error)
- func (r Row) Float64(col string) (float64, error)
- func (r Row) Int(col string) (int, error)
- func (r Row) String(col string) (string, error)
- func (r Row) Time(col string) (time.Time, error)
- type Rows
- type Statement
- type Transaction
- func (tx Transaction) Exec(s *Statement) (ExecResult, error)
- func (tx Transaction) ExecContext(ctx context.Context, s *Statement) (ExecResult, error)
- func (tx Transaction) Query(s *Statement) (QueryResult, error)
- func (tx Transaction) QueryContext(ctx context.Context, s *Statement) (QueryResult, error)
- func (tx Transaction) QueryRow(s *Statement) QueryRowResult
- func (tx Transaction) QueryRowContext(ctx context.Context, s *Statement) QueryRowResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCannotConvert = errors.New("gdo: cannot convert value to type")
View Source
var ErrColNotFound = errors.New("gdo: column not found")
View Source
var ErrParameterMismatch = errors.New("gdo: you have a parameter mismatch")
Functions ¶
This section is empty.
Types ¶
type ExecResult ¶
type GDO ¶
func (GDO) BeginTx ¶
func (g GDO) BeginTx() (Transaction, error)
func (GDO) BeginTxContext ¶
func (GDO) ExecContext ¶
func (GDO) PrepareContext ¶
func (GDO) QueryContext ¶
func (GDO) QueryRow ¶
func (g GDO) QueryRow(s *Statement) QueryRowResult
func (GDO) QueryRowContext ¶
func (g GDO) QueryRowContext(ctx context.Context, s *Statement) QueryRowResult
type GDOResult ¶
type GDOResult struct {
// contains filtered or unexported fields
}
func (GDOResult) LastExecutedQuery ¶
type PreparedStatement ¶
func (*PreparedStatement) Exec ¶
func (ps *PreparedStatement) Exec() (ExecResult, error)
func (*PreparedStatement) ExecContext ¶
func (ps *PreparedStatement) ExecContext(ctx context.Context) (ExecResult, error)
func (*PreparedStatement) Query ¶
func (ps *PreparedStatement) Query() (QueryResult, error)
func (*PreparedStatement) QueryContext ¶
func (ps *PreparedStatement) QueryContext(ctx context.Context) (QueryResult, error)
func (*PreparedStatement) QueryRow ¶
func (ps *PreparedStatement) QueryRow() QueryRowResult
func (*PreparedStatement) QueryRowContext ¶
func (ps *PreparedStatement) QueryRowContext(ctx context.Context) QueryRowResult
type QueryResult ¶
func (QueryResult) FetchRows ¶
func (r QueryResult) FetchRows() Rows
func (QueryResult) FetchRowsTyped ¶
func (qr QueryResult) FetchRowsTyped(t interface{}) (interface{}, error)
type QueryRowResult ¶
type QueryRowResult struct { QueryResult // contains filtered or unexported fields }
func (QueryRowResult) FetchRow ¶
func (qrr QueryRowResult) FetchRow() Row
func (QueryRowResult) LastError ¶
func (qrr QueryRowResult) LastError() error
type Statement ¶
type Statement struct {
// contains filtered or unexported fields
}
func (*Statement) BindNamedArg ¶
func (*Statement) BindNamedArgs ¶
type Transaction ¶
func (Transaction) Exec ¶
func (tx Transaction) Exec(s *Statement) (ExecResult, error)
func (Transaction) ExecContext ¶
func (tx Transaction) ExecContext(ctx context.Context, s *Statement) (ExecResult, error)
func (Transaction) Query ¶
func (tx Transaction) Query(s *Statement) (QueryResult, error)
func (Transaction) QueryContext ¶
func (tx Transaction) QueryContext(ctx context.Context, s *Statement) (QueryResult, error)
func (Transaction) QueryRow ¶
func (tx Transaction) QueryRow(s *Statement) QueryRowResult
func (Transaction) QueryRowContext ¶
func (tx Transaction) QueryRowContext(ctx context.Context, s *Statement) QueryRowResult
Click to show internal directories.
Click to hide internal directories.