Documentation ¶
Index ¶
- func Begin(ctx context.Context) context.Context
- func Call(ctx context.Context, handle func(*gorm.DB) *gorm.DB) context.Context
- func Commit(ctx context.Context) context.Context
- func Count(db *gorm.DB, v interface{}, filter ...interface{}) error
- func Create(db *gorm.DB, m interface{}) error
- func DB(ctx context.Context) *gorm.DB
- func Delete(db *gorm.DB, m interface{}, filter ...interface{}) error
- func Find(db *gorm.DB, m interface{}, filter ...interface{}) error
- func First(db *gorm.DB, m interface{}, filter ...interface{}) error
- func Pluck(db *gorm.DB, m interface{}, c string, v interface{}, filter ...interface{}) error
- func Register(ctx context.Context) context.Context
- func Rollback(ctx context.Context) context.Context
- func Save(db *gorm.DB, m interface{}) error
- func Scan(db *gorm.DB, v interface{}) error
- func Update(db *gorm.DB, m interface{}) error
- type DBHelper
- func (r *DBHelper) Count(ctx context.Context, m, v interface{}, filter ...interface{}) error
- func (r *DBHelper) Create(ctx context.Context, m interface{}) error
- func (r *DBHelper) Delete(ctx context.Context, m interface{}, filter ...interface{}) error
- func (r *DBHelper) Find(ctx context.Context, m interface{}, filter ...interface{}) error
- func (r *DBHelper) First(ctx context.Context, m interface{}, filter ...interface{}) error
- func (r *DBHelper) Pluck(ctx context.Context, m interface{}, c string, v interface{}, ...) error
- func (r *DBHelper) Save(ctx context.Context, m interface{}) error
- func (r *DBHelper) Scan(ctx context.Context, v interface{}) error
- func (r *DBHelper) Update(ctx context.Context, m interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.