Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SysDict) predicate.SysDict
- func CreatedAt(v time.Time) predicate.SysDict
- func CreatedAtEQ(v time.Time) predicate.SysDict
- func CreatedAtGT(v time.Time) predicate.SysDict
- func CreatedAtGTE(v time.Time) predicate.SysDict
- func CreatedAtIn(vs ...time.Time) predicate.SysDict
- func CreatedAtLT(v time.Time) predicate.SysDict
- func CreatedAtLTE(v time.Time) predicate.SysDict
- func CreatedAtNEQ(v time.Time) predicate.SysDict
- func CreatedAtNotIn(vs ...time.Time) predicate.SysDict
- func DeletedAt(v time.Time) predicate.SysDict
- func DeletedAtEQ(v time.Time) predicate.SysDict
- func DeletedAtGT(v time.Time) predicate.SysDict
- func DeletedAtGTE(v time.Time) predicate.SysDict
- func DeletedAtIn(vs ...time.Time) predicate.SysDict
- func DeletedAtIsNil() predicate.SysDict
- func DeletedAtLT(v time.Time) predicate.SysDict
- func DeletedAtLTE(v time.Time) predicate.SysDict
- func DeletedAtNEQ(v time.Time) predicate.SysDict
- func DeletedAtNotIn(vs ...time.Time) predicate.SysDict
- func DeletedAtNotNil() predicate.SysDict
- func ID(id string) predicate.SysDict
- func IDEQ(id string) predicate.SysDict
- func IDGT(id string) predicate.SysDict
- func IDGTE(id string) predicate.SysDict
- func IDIn(ids ...string) predicate.SysDict
- func IDLT(id string) predicate.SysDict
- func IDLTE(id string) predicate.SysDict
- func IDNEQ(id string) predicate.SysDict
- func IDNotIn(ids ...string) predicate.SysDict
- func IsDel(v bool) predicate.SysDict
- func IsDelEQ(v bool) predicate.SysDict
- func IsDelNEQ(v bool) predicate.SysDict
- func Memo(v string) predicate.SysDict
- func MemoContains(v string) predicate.SysDict
- func MemoContainsFold(v string) predicate.SysDict
- func MemoEQ(v string) predicate.SysDict
- func MemoEqualFold(v string) predicate.SysDict
- func MemoGT(v string) predicate.SysDict
- func MemoGTE(v string) predicate.SysDict
- func MemoHasPrefix(v string) predicate.SysDict
- func MemoHasSuffix(v string) predicate.SysDict
- func MemoIn(vs ...string) predicate.SysDict
- func MemoLT(v string) predicate.SysDict
- func MemoLTE(v string) predicate.SysDict
- func MemoNEQ(v string) predicate.SysDict
- func MemoNotIn(vs ...string) predicate.SysDict
- func NameCn(v string) predicate.SysDict
- func NameCnContains(v string) predicate.SysDict
- func NameCnContainsFold(v string) predicate.SysDict
- func NameCnEQ(v string) predicate.SysDict
- func NameCnEqualFold(v string) predicate.SysDict
- func NameCnGT(v string) predicate.SysDict
- func NameCnGTE(v string) predicate.SysDict
- func NameCnHasPrefix(v string) predicate.SysDict
- func NameCnHasSuffix(v string) predicate.SysDict
- func NameCnIn(vs ...string) predicate.SysDict
- func NameCnLT(v string) predicate.SysDict
- func NameCnLTE(v string) predicate.SysDict
- func NameCnNEQ(v string) predicate.SysDict
- func NameCnNotIn(vs ...string) predicate.SysDict
- func NameEn(v string) predicate.SysDict
- func NameEnContains(v string) predicate.SysDict
- func NameEnContainsFold(v string) predicate.SysDict
- func NameEnEQ(v string) predicate.SysDict
- func NameEnEqualFold(v string) predicate.SysDict
- func NameEnGT(v string) predicate.SysDict
- func NameEnGTE(v string) predicate.SysDict
- func NameEnHasPrefix(v string) predicate.SysDict
- func NameEnHasSuffix(v string) predicate.SysDict
- func NameEnIn(vs ...string) predicate.SysDict
- func NameEnLT(v string) predicate.SysDict
- func NameEnLTE(v string) predicate.SysDict
- func NameEnNEQ(v string) predicate.SysDict
- func NameEnNotIn(vs ...string) predicate.SysDict
- func Not(p predicate.SysDict) predicate.SysDict
- func Or(predicates ...predicate.SysDict) predicate.SysDict
- func Sort(v int32) predicate.SysDict
- func SortEQ(v int32) predicate.SysDict
- func SortGT(v int32) predicate.SysDict
- func SortGTE(v int32) predicate.SysDict
- func SortIn(vs ...int32) predicate.SysDict
- func SortLT(v int32) predicate.SysDict
- func SortLTE(v int32) predicate.SysDict
- func SortNEQ(v int32) predicate.SysDict
- func SortNotIn(vs ...int32) predicate.SysDict
- func Status(v int16) predicate.SysDict
- func StatusEQ(v int16) predicate.SysDict
- func StatusGT(v int16) predicate.SysDict
- func StatusGTE(v int16) predicate.SysDict
- func StatusIn(vs ...int16) predicate.SysDict
- func StatusLT(v int16) predicate.SysDict
- func StatusLTE(v int16) predicate.SysDict
- func StatusNEQ(v int16) predicate.SysDict
- func StatusNotIn(vs ...int16) predicate.SysDict
- func UpdatedAt(v time.Time) predicate.SysDict
- func UpdatedAtEQ(v time.Time) predicate.SysDict
- func UpdatedAtGT(v time.Time) predicate.SysDict
- func UpdatedAtGTE(v time.Time) predicate.SysDict
- func UpdatedAtIn(vs ...time.Time) predicate.SysDict
- func UpdatedAtLT(v time.Time) predicate.SysDict
- func UpdatedAtLTE(v time.Time) predicate.SysDict
- func UpdatedAtNEQ(v time.Time) predicate.SysDict
- func UpdatedAtNotIn(vs ...time.Time) predicate.SysDict
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the sysdict type in the database. Label = "sys_dict" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIsDel holds the string denoting the is_del field in the database. FieldIsDel = "is_del" // FieldMemo holds the string denoting the memo field in the database. FieldMemo = "memo" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "crtd_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "uptd_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "dltd_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldNameCn holds the string denoting the name_cn field in the database. FieldNameCn = "name_cn" // FieldNameEn holds the string denoting the name_en field in the database. FieldNameEn = "name_en" // Table holds the table name of the sysdict in the database. Table = "sys_dicts" )
Variables ¶
var ( // DefaultIsDel holds the default value on creation for the "is_del" field. DefaultIsDel bool // DefaultMemo holds the default value on creation for the "memo" field. DefaultMemo string // MemoValidator is a validator for the "memo" field. It is called by the builders before save. MemoValidator func(string) error // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int32 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus int16 // NameCnValidator is a validator for the "name_cn" field. It is called by the builders before save. NameCnValidator func(string) error // NameEnValidator is a validator for the "name_en" field. It is called by the builders before save. NameEnValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldIsDel, FieldMemo, FieldSort, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldStatus, FieldNameCn, FieldNameEn, }
Columns holds all SQL columns for sysdict fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func IsDel ¶
IsDel applies equality check predicate on the "is_del" field. It's identical to IsDelEQ.
func MemoContains ¶
MemoContains applies the Contains predicate on the "memo" field.
func MemoContainsFold ¶
MemoContainsFold applies the ContainsFold predicate on the "memo" field.
func MemoEqualFold ¶
MemoEqualFold applies the EqualFold predicate on the "memo" field.
func MemoHasPrefix ¶
MemoHasPrefix applies the HasPrefix predicate on the "memo" field.
func MemoHasSuffix ¶
MemoHasSuffix applies the HasSuffix predicate on the "memo" field.
func NameCn ¶
NameCn applies equality check predicate on the "name_cn" field. It's identical to NameCnEQ.
func NameCnContains ¶
NameCnContains applies the Contains predicate on the "name_cn" field.
func NameCnContainsFold ¶
NameCnContainsFold applies the ContainsFold predicate on the "name_cn" field.
func NameCnEqualFold ¶
NameCnEqualFold applies the EqualFold predicate on the "name_cn" field.
func NameCnHasPrefix ¶
NameCnHasPrefix applies the HasPrefix predicate on the "name_cn" field.
func NameCnHasSuffix ¶
NameCnHasSuffix applies the HasSuffix predicate on the "name_cn" field.
func NameCnNotIn ¶
NameCnNotIn applies the NotIn predicate on the "name_cn" field.
func NameEn ¶
NameEn applies equality check predicate on the "name_en" field. It's identical to NameEnEQ.
func NameEnContains ¶
NameEnContains applies the Contains predicate on the "name_en" field.
func NameEnContainsFold ¶
NameEnContainsFold applies the ContainsFold predicate on the "name_en" field.
func NameEnEqualFold ¶
NameEnEqualFold applies the EqualFold predicate on the "name_en" field.
func NameEnHasPrefix ¶
NameEnHasPrefix applies the HasPrefix predicate on the "name_en" field.
func NameEnHasSuffix ¶
NameEnHasSuffix applies the HasSuffix predicate on the "name_en" field.
func NameEnNotIn ¶
NameEnNotIn applies the NotIn predicate on the "name_en" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.