Documentation
¶
Index ¶
- func BaseDaoBuilder[T orm.Entity]() *baseDaoBuilder[T]
- func InArgs[T any](source ...T) inArgs
- func MockBaseDao[T orm.Entity](r *require.Assertions, logicalDelCfg *LogicalDelCfg) (*baseDao[T], sqlmock.Sqlmock)
- func Not() not
- func WriteCondition[T orm.Entity](c *CondGroup, b *orm.SqlBuilder[T])
- type CondGroup
- func (cg *CondGroup) Add(other *CondGroup) *CondGroup
- func (cg *CondGroup) Between(column string, min, max any, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) Eq(column string, arg any, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) Ge(column string, arg any, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) Gt(column string, arg any, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) In(column string, args inArgs, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) IsNotNull(column string) *CondGroup
- func (cg *CondGroup) IsNull(column string) *CondGroup
- func (cg *CondGroup) Le(column string, arg any, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) Like(column string, arg string, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) LikeLeft(column string, arg string, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) LikeRight(column string, arg string, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) Lt(column string, arg any, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) Ne(column string, arg any, opts ...CondOpt) *CondGroup
- func (cg *CondGroup) Not() *CondGroup
- func (cg *CondGroup) Plain(sql string, args ...any) *CondGroup
- func (cg *CondGroup) ToStrArgs(nameMap map[string]string) (string, []any)
- type CondOpt
- type Logger
- func (d Logger) Debugf(ctx context.Context, msg string, args ...interface{})
- func (d Logger) Errorf(ctx context.Context, msg string, args ...interface{})
- func (d Logger) Infof(ctx context.Context, msg string, args ...interface{})
- func (d Logger) Warnf(ctx context.Context, msg string, args ...interface{})
- type LogicalDelCfg
- type OrderBy
- type Paging
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseDaoBuilder ¶
func MockBaseDao ¶
func MockBaseDao[T orm.Entity](r *require.Assertions, logicalDelCfg *LogicalDelCfg) (*baseDao[T], sqlmock.Sqlmock)
func WriteCondition ¶
func WriteCondition[T orm.Entity](c *CondGroup, b *orm.SqlBuilder[T])
Types ¶
type CondGroup ¶
type CondGroup struct {
// contains filtered or unexported fields
}
type CondOpt ¶
type CondOpt func(*condOpt)
func WithIfPredicate ¶
func WithIfPresent ¶
func WithIfPresent() CondOpt
type LogicalDelCfg ¶
Click to show internal directories.
Click to hide internal directories.