Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type QueryTakeFunc ¶
type QueryTakeFunc func(context.Context, string, interface{}, SqlSession)
type SqlSession ¶
type SqlSession interface { RawDB() *gorm.DB QueryScanContext(context.Context, interface{}, string, ...string) error QueryCountContext(ctx context.Context, total *int64, sql string, args ...string) error ExecSqlContext(context.Context, string, ...string) (bool, error) TransactCtx(context.Context, func(context context.Context, tx *gorm.DB) error) error QueryFromDB(ctx context.Context, db *gorm.DB, result interface{}) error CountFromDB(ctx context.Context, db *gorm.DB, total *int64) error }
func NewSql ¶
func NewSql(c *gofkConfs.DBConfig) SqlSession
func NewSqlFromDB ¶
func NewSqlFromDB(db *gorm.DB) SqlSession
Click to show internal directories.
Click to hide internal directories.