Documentation
¶
Index ¶
- type DbConn
- func (c *DbConn) AppendSqlCondition(sb *strings.Builder, params *[]any, condition bool, sqlFormat string, ...)
- func (c *DbConn) Exec(query string, args ...interface{}) sql.Result
- func (c *DbConn) GetDb() *sqlx.DB
- func (c *DbConn) GetLastInsertID(result sql.Result) int64
- func (c *DbConn) GetRowsAffected(result sql.Result) int64
- func (c *DbConn) GetTrans() *sqlx.Tx
- func (c *DbConn) Rows(dest interface{}, query string, args ...interface{})
- func (c *DbConn) Scalar(dest interface{}, query string, args ...interface{})
- func (c *DbConn) Transaction(action func(conn *DbConn) any) any
- type DbSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbConn ¶
type DbConn struct {
// contains filtered or unexported fields
}
func (*DbConn) AppendSqlCondition ¶
type DbSource ¶
func (*DbSource) CreatePool ¶
Click to show internal directories.
Click to hide internal directories.