Documentation
¶
Index ¶
- func Close() error
- func Exec(query string, args ...interface{}) (data sql.Result, err error)
- func ExecContext(query string, args ...interface{}) (data sql.Result, err error)
- func GetContext(dest interface{}, query string, args ...interface{}) error
- func OnInit(config map[string]interface{}, option ...Option) (err error)
- func Query(query string, args ...interface{}) (data *sql.Rows, err error)
- func QueryContext(query string, args ...interface{}) (data *sql.Rows, err error)
- func QueryRowxContext(query string, args ...interface{}) (data *sqlx.Row)
- func QueryxContext(query string, args ...interface{}) (data *sqlx.Rows, err error)
- func SelectContext(dest interface{}, query string, args ...interface{}) error
- type ISys
- type Option
- type Options
- type Sql
- func (this *Sql) Close() error
- func (this *Sql) Exec(query string, args ...interface{}) (data sql.Result, err error)
- func (this *Sql) ExecContext(query string, args ...interface{}) (data sql.Result, err error)
- func (this *Sql) GetContext(dest interface{}, query string, args ...interface{}) error
- func (this *Sql) Query(query string, args ...interface{}) (data *sql.Rows, err error)
- func (this *Sql) QueryContext(query string, args ...interface{}) (data *sql.Rows, err error)
- func (this *Sql) QueryRowxContext(query string, args ...interface{}) (data *sqlx.Row)
- func (this *Sql) QueryxContext(query string, args ...interface{}) (data *sqlx.Rows, err error)
- func (this *Sql) SelectContext(dest interface{}, query string, args ...interface{}) error
- type SqlType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContext ¶
func QueryContext ¶
func QueryRowxContext ¶
func QueryxContext ¶
func SelectContext ¶
Types ¶
type ISys ¶
type ISys interface { Close() error Exec(query string, args ...interface{}) (data sql.Result, err error) Query(query string, args ...interface{}) (data *sql.Rows, err error) ExecContext(query string, args ...interface{}) (data sql.Result, err error) QueryContext(query string, args ...interface{}) (data *sql.Rows, err error) QueryxContext(query string, args ...interface{}) (data *sqlx.Rows, err error) QueryRowxContext(query string, args ...interface{}) (data *sqlx.Row) GetContext(dest interface{}, query string, args ...interface{}) error SelectContext(dest interface{}, query string, args ...interface{}) error }
type Sql ¶
type Sql struct {
// contains filtered or unexported fields
}
func (*Sql) ExecContext ¶
func (*Sql) GetContext ¶
func (*Sql) QueryContext ¶
func (*Sql) QueryRowxContext ¶
func (*Sql) QueryxContext ¶
func (*Sql) SelectContext ¶
Click to show internal directories.
Click to hide internal directories.