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