Documentation ¶
Index ¶
- func BuildTableSchemas()
- func CheckRecordTotal(qb *queryBuilder, countField ...string) int
- func DebugModeEnabled(args ...bool) bool
- func DeleteBySql(query string, args ...interface{}) (int64, error)
- func ExecuteSql(query string, args ...interface{}) error
- func GetTableSchemas() map[string][]tableFieldInfo
- func InsertBySql(query string, args ...interface{}) (int64, error)
- func IsFieldValueExists(tblName, fieldName string, fieldValue interface{}, pkValue ...interface{}) bool
- func Raw(expr string) *rawSql
- func SelectBySql(query string, args ...interface{}) ([]map[string]interface{}, error)
- func Table(name string) *queryBuilder
- func Transations(fn func(tx *sql.Tx) error, opts ...*sql.TxOptions) error
- func TxDeleteBySql(tx *sql.Tx, query string, args ...interface{}) (int64, error)
- func TxExecuteSql(tx *sql.Tx, query string, args ...interface{}) error
- func TxInsertBySql(tx *sql.Tx, query string, args ...interface{}) (int64, error)
- func TxSelectBySql(tx *sql.Tx, query string, args ...interface{}) ([]map[string]interface{}, error)
- func TxUpdateBySql(tx *sql.Tx, query string, args ...interface{}) (int64, error)
- func UpdateBySql(query string, args ...interface{}) (int64, error)
- func WithLogger(arg0 logx.Logger)
- func WithPool(arg0 *sql.DB)
- type DbException
- type NoDataException
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTableSchemas ¶
func BuildTableSchemas()
func CheckRecordTotal ¶
func DebugModeEnabled ¶
func DeleteBySql ¶
func ExecuteSql ¶
func GetTableSchemas ¶
func GetTableSchemas() map[string][]tableFieldInfo
func InsertBySql ¶
func IsFieldValueExists ¶
func SelectBySql ¶
func TxDeleteBySql ¶
func TxInsertBySql ¶
func TxSelectBySql ¶
func TxUpdateBySql ¶
func UpdateBySql ¶
func WithLogger ¶
Types ¶
type DbException ¶
type DbException struct {
// contains filtered or unexported fields
}
func NewDbException ¶
func NewDbException(errorTips string) DbException
func (DbException) Error ¶
func (ex DbException) Error() string
type NoDataException ¶
type NoDataException struct { }
func NewNoDataException ¶
func NewNoDataException() NoDataException
func (NoDataException) Error ¶
func (ex NoDataException) Error() string
Click to show internal directories.
Click to hide internal directories.