Documentation ¶
Index ¶
- Constants
- func And(u interface{}, fields ...string) (s string)
- func AndWithWhere(u interface{}, fields ...string) string
- func Comma(u interface{}, fields ...string) (s string)
- func CommaWithEnd(u interface{}, fields ...string) string
- func CommaWithHead(u interface{}, fields ...string) string
- func Fields(u interface{}, fields ...string) string
- func Like(u interface{}, fields ...string) (s string)
- func Or(u interface{}, fields ...string) (s string)
- func OrWithWhere(u interface{}, fields ...string) string
- func OrderBy(u interface{}, orm ORM) string
- func Where(conds ...string) string
- type ASQL
- type CombineOperator
- type DB
- func (db *DB) Begin() (*sql.Tx, error)
- func (db *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
- func (d *DB) Close()
- func (d *DB) CloseRows(rows *sql.Rows) *ae.Error
- func (d *DB) Exec(query string, args ...interface{}) (sql.Result, *ae.Error)
- func (d *DB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, *ae.Error)
- func (d *DB) Insert(ctx context.Context, query string, args ...interface{}) (uint, *ae.Error)
- func (d *DB) Query(query string, args ...interface{}) (*sql.Rows, *ae.Error)
- func (d *DB) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, *ae.Error)
- func (d *DB) QueryRow(query string, args ...interface{}) (*sql.Row, *ae.Error)
- func (d *DB) QueryRowContext(ctx context.Context, query string, args ...interface{}) (*sql.Row, *ae.Error)
- func (d *DB) ScanRow(query string, dest ...interface{}) *ae.Error
- func (d *DB) ScanRowContext(ctx context.Context, query string, dest ...interface{}) *ae.Error
- type Limit
- type ORM
Constants ¶
View Source
const ( OrCombineOperator = ") OR (" AndCombineOperator = ") AND (" )
Variables ¶
This section is empty.
Functions ¶
func AndWithWhere ¶
func CommaWithEnd ¶
func CommaWithHead ¶
func OrWithWhere ¶
Types ¶
type ASQL ¶
type CombineOperator ¶
type CombineOperator string
type DB ¶
func (*DB) ExecContext ¶
func (*DB) QueryContext ¶
func (*DB) QueryRowContext ¶
Click to show internal directories.
Click to hide internal directories.