Documentation
¶
Index ¶
- type User
- type UserDAO
- func (dao *UserDAO) Count(ctx context.Context, where string, args ...interface{}) (int64, error)
- func (dao *UserDAO) Create(ctx context.Context, m *User) error
- func (dao *UserDAO) CreateMany(ctx context.Context, models []*User) error
- func (dao *UserDAO) DeleteByPk(ctx context.Context, pk int) error
- func (dao *UserDAO) DeleteManyByPks(ctx context.Context, pks []int) error
- func (dao *UserDAO) FindAll(ctx context.Context, where string, sort string, args ...interface{}) ([]*User, error)
- func (dao *UserDAO) FindByPk(ctx context.Context, pk int) (*User, error)
- func (dao *UserDAO) FindOne(ctx context.Context, where string, sort string, args ...interface{}) (*User, error)
- func (dao *UserDAO) FindPaginated(ctx context.Context, limit, offset int, where string, sort string, ...) ([]*User, error)
- func (dao *UserDAO) PartialUpdate(ctx context.Context, pk int, fields map[string]interface{}) error
- func (dao *UserDAO) Update(ctx context.Context, m *User) error
- func (dao *UserDAO) UpdateMany(ctx context.Context, models []*User) error
- func (dao *UserDAO) WithTransaction(ctx context.Context, fn func(ctx context.Context) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserDAO ¶
type UserDAO struct {
// contains filtered or unexported fields
}
func NewUserDAO ¶
func (*UserDAO) CreateMany ¶
func (*UserDAO) DeleteManyByPks ¶
func (*UserDAO) FindPaginated ¶
func (*UserDAO) PartialUpdate ¶
func (*UserDAO) UpdateMany ¶
Click to show internal directories.
Click to hide internal directories.