Versions in this module Expand all Collapse all v1 v1.0.1 Aug 7, 2021 Changes in this version + type DbEnhance struct + func NewDbEnhance(db *sql.DB) *DbEnhance + func (db *DbEnhance) EnhancedQuery(query string, args ...interface{}) (*EnhanceRows, error) + func (db *DbEnhance) EnhancedQueryContext(ctx context.Context, query string, args ...interface{}) (*EnhanceRows, error) + func (db *DbEnhance) EnhancedQueryRow(query string, args ...interface{}) *EnhanceRow + func (db *DbEnhance) EnhancedQueryRowContext(ctx context.Context, query string, args ...interface{}) *EnhanceRow v1.0.0 Jul 12, 2021 Changes in this version + func Newsqlen(db *sql.DB) *sqlen + type DbExer interface + Exec func(query string, args ...interface{}) (sql.Result, error) + ExecContext func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + Query func(query string, args ...interface{}) (*sql.Rows, error) + QueryContext func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + QueryRow func(query string, args ...interface{}) *sql.Row + QueryRowContext func(ctx context.Context, query string, args ...interface{}) *sql.Row + type EnhanceRow struct + func (r *EnhanceRow) Err() error + func (r *EnhanceRow) MapScan(dest map[string]interface{}) error + func (r *EnhanceRow) Scan(dest ...interface{}) error + func (r *EnhanceRow) SliceScan() ([]interface{}, error) + type EnhanceRows struct + func (r *EnhanceRows) Err() error + func (rs *EnhanceRows) MapScan(dest map[string]interface{}) error + func (rs *EnhanceRows) SliceScan() ([]interface{}, error) + type EnhancedDbExer interface + EnhancedQuery func(query string, args ...interface{}) (*EnhanceRows, error) + EnhancedQueryContext func(ctx context.Context, query string, args ...interface{}) (*EnhanceRows, error) + EnhancedQueryRow func(query string, args ...interface{}) *EnhanceRow + EnhancedQueryRowContext func(ctx context.Context, query string, args ...interface{}) *EnhanceRow + type TxEnhance struct + func NewTxEnhance(tx *sql.Tx) *TxEnhance + func (tx *TxEnhance) EnhancedQuery(query string, args ...interface{}) (*EnhanceRows, error) + func (tx *TxEnhance) EnhancedQueryContext(ctx context.Context, query string, args ...interface{}) (*EnhanceRows, error) + func (tx *TxEnhance) EnhancedQueryRow(query string, args ...interface{}) *EnhanceRow + func (tx *TxEnhance) EnhancedQueryRowContext(ctx context.Context, query string, args ...interface{}) *EnhanceRow