Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SysRole) predicate.SysRole
- func CreatedAt(v time.Time) predicate.SysRole
- func CreatedAtEQ(v time.Time) predicate.SysRole
- func CreatedAtGT(v time.Time) predicate.SysRole
- func CreatedAtGTE(v time.Time) predicate.SysRole
- func CreatedAtIn(vs ...time.Time) predicate.SysRole
- func CreatedAtLT(v time.Time) predicate.SysRole
- func CreatedAtLTE(v time.Time) predicate.SysRole
- func CreatedAtNEQ(v time.Time) predicate.SysRole
- func CreatedAtNotIn(vs ...time.Time) predicate.SysRole
- func DeletedAt(v time.Time) predicate.SysRole
- func DeletedAtEQ(v time.Time) predicate.SysRole
- func DeletedAtGT(v time.Time) predicate.SysRole
- func DeletedAtGTE(v time.Time) predicate.SysRole
- func DeletedAtIn(vs ...time.Time) predicate.SysRole
- func DeletedAtIsNil() predicate.SysRole
- func DeletedAtLT(v time.Time) predicate.SysRole
- func DeletedAtLTE(v time.Time) predicate.SysRole
- func DeletedAtNEQ(v time.Time) predicate.SysRole
- func DeletedAtNotIn(vs ...time.Time) predicate.SysRole
- func DeletedAtNotNil() predicate.SysRole
- func ID(id string) predicate.SysRole
- func IDEQ(id string) predicate.SysRole
- func IDGT(id string) predicate.SysRole
- func IDGTE(id string) predicate.SysRole
- func IDIn(ids ...string) predicate.SysRole
- func IDLT(id string) predicate.SysRole
- func IDLTE(id string) predicate.SysRole
- func IDNEQ(id string) predicate.SysRole
- func IDNotIn(ids ...string) predicate.SysRole
- func IsDel(v bool) predicate.SysRole
- func IsDelEQ(v bool) predicate.SysRole
- func IsDelNEQ(v bool) predicate.SysRole
- func Memo(v string) predicate.SysRole
- func MemoContains(v string) predicate.SysRole
- func MemoContainsFold(v string) predicate.SysRole
- func MemoEQ(v string) predicate.SysRole
- func MemoEqualFold(v string) predicate.SysRole
- func MemoGT(v string) predicate.SysRole
- func MemoGTE(v string) predicate.SysRole
- func MemoHasPrefix(v string) predicate.SysRole
- func MemoHasSuffix(v string) predicate.SysRole
- func MemoIn(vs ...string) predicate.SysRole
- func MemoLT(v string) predicate.SysRole
- func MemoLTE(v string) predicate.SysRole
- func MemoNEQ(v string) predicate.SysRole
- func MemoNotIn(vs ...string) predicate.SysRole
- func Name(v string) predicate.SysRole
- func NameContains(v string) predicate.SysRole
- func NameContainsFold(v string) predicate.SysRole
- func NameEQ(v string) predicate.SysRole
- func NameEqualFold(v string) predicate.SysRole
- func NameGT(v string) predicate.SysRole
- func NameGTE(v string) predicate.SysRole
- func NameHasPrefix(v string) predicate.SysRole
- func NameHasSuffix(v string) predicate.SysRole
- func NameIn(vs ...string) predicate.SysRole
- func NameLT(v string) predicate.SysRole
- func NameLTE(v string) predicate.SysRole
- func NameNEQ(v string) predicate.SysRole
- func NameNotIn(vs ...string) predicate.SysRole
- func Not(p predicate.SysRole) predicate.SysRole
- func Or(predicates ...predicate.SysRole) predicate.SysRole
- func Sort(v int32) predicate.SysRole
- func SortEQ(v int32) predicate.SysRole
- func SortGT(v int32) predicate.SysRole
- func SortGTE(v int32) predicate.SysRole
- func SortIn(vs ...int32) predicate.SysRole
- func SortLT(v int32) predicate.SysRole
- func SortLTE(v int32) predicate.SysRole
- func SortNEQ(v int32) predicate.SysRole
- func SortNotIn(vs ...int32) predicate.SysRole
- func Status(v int16) predicate.SysRole
- func StatusEQ(v int16) predicate.SysRole
- func StatusGT(v int16) predicate.SysRole
- func StatusGTE(v int16) predicate.SysRole
- func StatusIn(vs ...int16) predicate.SysRole
- func StatusLT(v int16) predicate.SysRole
- func StatusLTE(v int16) predicate.SysRole
- func StatusNEQ(v int16) predicate.SysRole
- func StatusNotIn(vs ...int16) predicate.SysRole
- func UpdatedAt(v time.Time) predicate.SysRole
- func UpdatedAtEQ(v time.Time) predicate.SysRole
- func UpdatedAtGT(v time.Time) predicate.SysRole
- func UpdatedAtGTE(v time.Time) predicate.SysRole
- func UpdatedAtIn(vs ...time.Time) predicate.SysRole
- func UpdatedAtLT(v time.Time) predicate.SysRole
- func UpdatedAtLTE(v time.Time) predicate.SysRole
- func UpdatedAtNEQ(v time.Time) predicate.SysRole
- func UpdatedAtNotIn(vs ...time.Time) predicate.SysRole
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the sysrole type in the database. Label = "sys_role" // 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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldMemo holds the string denoting the memo field in the database. FieldMemo = "memo" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // Table holds the table name of the sysrole in the database. Table = "sys_roles" )
Variables ¶
var ( // DefaultIsDel holds the default value on creation for the "is_del" field. DefaultIsDel bool // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus int16 // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int32 // 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 // 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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator 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, FieldStatus, FieldSort, FieldMemo, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, }
Columns holds all SQL columns for sysrole 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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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.