Documentation
¶
Index ¶
- Variables
- type Config
- type Gormx
- func (s *Gormx) BuildOptions(opts ...Option) *gorm.DB
- func (s *Gormx) Count(opts ...Option) (int64, error)
- func (s *Gormx) DB() *gorm.DB
- func (s *Gormx) Debug() *Gormx
- func (s *Gormx) Delete(dest interface{}, opts ...Option) error
- func (s *Gormx) Exec(sql string, values ...interface{}) error
- func (s *Gormx) Exists(dest interface{}, opts ...Option) (bool, error)
- func (s *Gormx) FindMany(dest interface{}, opts ...Option) error
- func (s *Gormx) FindOne(dest interface{}, opts ...Option) error
- func (s *Gormx) Insert(doc interface{}, opts ...Option) error
- func (s *Gormx) Model(value interface{}) *Gormx
- func (s *Gormx) Pluck(column string, dest interface{}, opts ...Option) error
- func (s *Gormx) Raw(sql string, values ...interface{}) *Gormx
- func (s *Gormx) Save(doc interface{}, opts ...Option) error
- func (s *Gormx) Scan(dest interface{}) error
- func (s *Gormx) Tx(fn func(tx *Gormx) error, opts ...*sql.TxOptions) error
- func (s *Gormx) Update(column string, value interface{}, opts ...Option) error
- func (s *Gormx) Updates(dest interface{}, opts ...Option) error
- func (s *Gormx) WithConn(conn *gorm.DB) *Gormx
- func (s *Gormx) WithContext(ctx context.Context) *Gormx
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoRowsAffected = errors.New("no rows affected")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.