Documentation ¶
Index ¶
- type UserGenDAO
- func (dao *UserGenDAO) Begin(ctx context.Context, opts *sql.TxOptions) (*UserTxGenDAO, error)
- func (dao *UserGenDAO) DeleteByRaw(ctx context.Context, query string, args ...any) (int64, error)
- func (dao *UserGenDAO) DeleteByWhere(ctx context.Context, where string, args ...any) (int64, error)
- func (dao *UserGenDAO) Insert(ctx context.Context, vals ...*integration.User) (int64, error)
- func (dao *UserGenDAO) NewBatch(rows *sql.Rows) ([]*integration.User, error)
- func (dao *UserGenDAO) NewOne(row *sql.Row) (*integration.User, error)
- func (dao *UserGenDAO) SelectBatchByRaw(ctx context.Context, query string, args ...any) ([]*integration.User, error)
- func (dao *UserGenDAO) SelectBatchByWhere(ctx context.Context, where string, args ...any) ([]*integration.User, error)
- func (dao *UserGenDAO) SelectByRaw(ctx context.Context, query string, args ...any) (*integration.User, error)
- func (dao *UserGenDAO) SelectByWhere(ctx context.Context, where string, args ...any) (*integration.User, error)
- func (dao *UserGenDAO) UpdateColsByRaw(ctx context.Context, query string, args ...any) (int64, error)
- func (dao *UserGenDAO) UpdateNonePKColByWhere(ctx context.Context, val *integration.User, where string, args ...any) (int64, error)
- func (dao *UserGenDAO) UpdateNoneZeroColByWhere(ctx context.Context, val *integration.User, where string, args ...any) (int64, error)
- func (dao *UserGenDAO) UpdateSpecificColsByWhere(ctx context.Context, val *integration.User, cols []string, where string, ...) (int64, error)
- type UserTxGenDAO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserGenDAO ¶
type UserGenDAO struct {
// contains filtered or unexported fields
}
func NewUserGenDAO ¶
func NewUserGenDAO(db *sql.DB) (*UserGenDAO, error)
func (*UserGenDAO) Begin ¶
func (dao *UserGenDAO) Begin(ctx context.Context, opts *sql.TxOptions) (*UserTxGenDAO, error)
func (*UserGenDAO) DeleteByRaw ¶
func (*UserGenDAO) DeleteByWhere ¶
func (*UserGenDAO) Insert ¶
func (dao *UserGenDAO) Insert(ctx context.Context, vals ...*integration.User) (int64, error)
func (*UserGenDAO) NewBatch ¶
func (dao *UserGenDAO) NewBatch(rows *sql.Rows) ([]*integration.User, error)
func (*UserGenDAO) NewOne ¶
func (dao *UserGenDAO) NewOne(row *sql.Row) (*integration.User, error)
func (*UserGenDAO) SelectBatchByRaw ¶
func (dao *UserGenDAO) SelectBatchByRaw(ctx context.Context, query string, args ...any) ([]*integration.User, error)
func (*UserGenDAO) SelectBatchByWhere ¶
func (dao *UserGenDAO) SelectBatchByWhere(ctx context.Context, where string, args ...any) ([]*integration.User, error)
func (*UserGenDAO) SelectByRaw ¶
func (dao *UserGenDAO) SelectByRaw(ctx context.Context, query string, args ...any) (*integration.User, error)
func (*UserGenDAO) SelectByWhere ¶
func (dao *UserGenDAO) SelectByWhere(ctx context.Context, where string, args ...any) (*integration.User, error)
func (*UserGenDAO) UpdateColsByRaw ¶
func (*UserGenDAO) UpdateNonePKColByWhere ¶
func (dao *UserGenDAO) UpdateNonePKColByWhere(ctx context.Context, val *integration.User, where string, args ...any) (int64, error)
func (*UserGenDAO) UpdateNoneZeroColByWhere ¶
func (dao *UserGenDAO) UpdateNoneZeroColByWhere(ctx context.Context, val *integration.User, where string, args ...any) (int64, error)
func (*UserGenDAO) UpdateSpecificColsByWhere ¶
func (dao *UserGenDAO) UpdateSpecificColsByWhere(ctx context.Context, val *integration.User, cols []string, where string, args ...any) (int64, error)
type UserTxGenDAO ¶
type UserTxGenDAO struct {
*UserGenDAO
}
func (*UserTxGenDAO) Commit ¶
func (dao *UserTxGenDAO) Commit() error
func (*UserTxGenDAO) Rollback ¶
func (dao *UserTxGenDAO) Rollback() error
Click to show internal directories.
Click to hide internal directories.