Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dictionary) predicate.Dictionary
- func CreatedAt(v time.Time) predicate.Dictionary
- func CreatedAtEQ(v time.Time) predicate.Dictionary
- func CreatedAtGT(v time.Time) predicate.Dictionary
- func CreatedAtGTE(v time.Time) predicate.Dictionary
- func CreatedAtIn(vs ...time.Time) predicate.Dictionary
- func CreatedAtLT(v time.Time) predicate.Dictionary
- func CreatedAtLTE(v time.Time) predicate.Dictionary
- func CreatedAtNEQ(v time.Time) predicate.Dictionary
- func CreatedAtNotIn(vs ...time.Time) predicate.Dictionary
- func Desc(v string) predicate.Dictionary
- func DescContains(v string) predicate.Dictionary
- func DescContainsFold(v string) predicate.Dictionary
- func DescEQ(v string) predicate.Dictionary
- func DescEqualFold(v string) predicate.Dictionary
- func DescGT(v string) predicate.Dictionary
- func DescGTE(v string) predicate.Dictionary
- func DescHasPrefix(v string) predicate.Dictionary
- func DescHasSuffix(v string) predicate.Dictionary
- func DescIn(vs ...string) predicate.Dictionary
- func DescLT(v string) predicate.Dictionary
- func DescLTE(v string) predicate.Dictionary
- func DescNEQ(v string) predicate.Dictionary
- func DescNotIn(vs ...string) predicate.Dictionary
- func HasDictionaryDetails() predicate.Dictionary
- func HasDictionaryDetailsWith(preds ...predicate.DictionaryDetail) predicate.Dictionary
- func ID(id uint64) predicate.Dictionary
- func IDEQ(id uint64) predicate.Dictionary
- func IDGT(id uint64) predicate.Dictionary
- func IDGTE(id uint64) predicate.Dictionary
- func IDIn(ids ...uint64) predicate.Dictionary
- func IDLT(id uint64) predicate.Dictionary
- func IDLTE(id uint64) predicate.Dictionary
- func IDNEQ(id uint64) predicate.Dictionary
- func IDNotIn(ids ...uint64) predicate.Dictionary
- func Name(v string) predicate.Dictionary
- func NameContains(v string) predicate.Dictionary
- func NameContainsFold(v string) predicate.Dictionary
- func NameEQ(v string) predicate.Dictionary
- func NameEqualFold(v string) predicate.Dictionary
- func NameGT(v string) predicate.Dictionary
- func NameGTE(v string) predicate.Dictionary
- func NameHasPrefix(v string) predicate.Dictionary
- func NameHasSuffix(v string) predicate.Dictionary
- func NameIn(vs ...string) predicate.Dictionary
- func NameLT(v string) predicate.Dictionary
- func NameLTE(v string) predicate.Dictionary
- func NameNEQ(v string) predicate.Dictionary
- func NameNotIn(vs ...string) predicate.Dictionary
- func Not(p predicate.Dictionary) predicate.Dictionary
- func Or(predicates ...predicate.Dictionary) predicate.Dictionary
- func Status(v uint8) predicate.Dictionary
- func StatusEQ(v uint8) predicate.Dictionary
- func StatusGT(v uint8) predicate.Dictionary
- func StatusGTE(v uint8) predicate.Dictionary
- func StatusIn(vs ...uint8) predicate.Dictionary
- func StatusIsNil() predicate.Dictionary
- func StatusLT(v uint8) predicate.Dictionary
- func StatusLTE(v uint8) predicate.Dictionary
- func StatusNEQ(v uint8) predicate.Dictionary
- func StatusNotIn(vs ...uint8) predicate.Dictionary
- func StatusNotNil() predicate.Dictionary
- func Title(v string) predicate.Dictionary
- func TitleContains(v string) predicate.Dictionary
- func TitleContainsFold(v string) predicate.Dictionary
- func TitleEQ(v string) predicate.Dictionary
- func TitleEqualFold(v string) predicate.Dictionary
- func TitleGT(v string) predicate.Dictionary
- func TitleGTE(v string) predicate.Dictionary
- func TitleHasPrefix(v string) predicate.Dictionary
- func TitleHasSuffix(v string) predicate.Dictionary
- func TitleIn(vs ...string) predicate.Dictionary
- func TitleLT(v string) predicate.Dictionary
- func TitleLTE(v string) predicate.Dictionary
- func TitleNEQ(v string) predicate.Dictionary
- func TitleNotIn(vs ...string) predicate.Dictionary
- func UpdatedAt(v time.Time) predicate.Dictionary
- func UpdatedAtEQ(v time.Time) predicate.Dictionary
- func UpdatedAtGT(v time.Time) predicate.Dictionary
- func UpdatedAtGTE(v time.Time) predicate.Dictionary
- func UpdatedAtIn(vs ...time.Time) predicate.Dictionary
- func UpdatedAtLT(v time.Time) predicate.Dictionary
- func UpdatedAtLTE(v time.Time) predicate.Dictionary
- func UpdatedAtNEQ(v time.Time) predicate.Dictionary
- func UpdatedAtNotIn(vs ...time.Time) predicate.Dictionary
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the dictionary type in the database. Label = "dictionary" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // EdgeDictionaryDetails holds the string denoting the dictionary_details edge name in mutations. EdgeDictionaryDetails = "dictionary_details" // Table holds the table name of the dictionary in the database. Table = "sys_dictionaries" // DictionaryDetailsTable is the table that holds the dictionary_details relation/edge. DictionaryDetailsTable = "sys_dictionary_details" // DictionaryDetailsInverseTable is the table name for the DictionaryDetail entity. // It exists in this package in order to avoid circular dependency with the "dictionarydetail" package. DictionaryDetailsInverseTable = "sys_dictionary_details" // DictionaryDetailsColumn is the table column denoting the dictionary_details relation/edge. DictionaryDetailsColumn = "dictionary_dictionary_details" )
Variables ¶
var ( // 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 uint8 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldTitle, FieldName, FieldDesc, }
Columns holds all SQL columns for dictionary fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Dictionary) predicate.Dictionary
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Dictionary
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Dictionary
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Dictionary
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Dictionary
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Dictionary
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Dictionary
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Dictionary
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Dictionary
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Dictionary
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Desc ¶
func Desc(v string) predicate.Dictionary
Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.
func DescContains ¶
func DescContains(v string) predicate.Dictionary
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
func DescContainsFold(v string) predicate.Dictionary
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEQ ¶
func DescEQ(v string) predicate.Dictionary
DescEQ applies the EQ predicate on the "desc" field.
func DescEqualFold ¶
func DescEqualFold(v string) predicate.Dictionary
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescGT ¶
func DescGT(v string) predicate.Dictionary
DescGT applies the GT predicate on the "desc" field.
func DescGTE ¶
func DescGTE(v string) predicate.Dictionary
DescGTE applies the GTE predicate on the "desc" field.
func DescHasPrefix ¶
func DescHasPrefix(v string) predicate.Dictionary
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
func DescHasSuffix(v string) predicate.Dictionary
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func DescIn ¶
func DescIn(vs ...string) predicate.Dictionary
DescIn applies the In predicate on the "desc" field.
func DescLT ¶
func DescLT(v string) predicate.Dictionary
DescLT applies the LT predicate on the "desc" field.
func DescLTE ¶
func DescLTE(v string) predicate.Dictionary
DescLTE applies the LTE predicate on the "desc" field.
func DescNEQ ¶
func DescNEQ(v string) predicate.Dictionary
DescNEQ applies the NEQ predicate on the "desc" field.
func DescNotIn ¶
func DescNotIn(vs ...string) predicate.Dictionary
DescNotIn applies the NotIn predicate on the "desc" field.
func HasDictionaryDetails ¶
func HasDictionaryDetails() predicate.Dictionary
HasDictionaryDetails applies the HasEdge predicate on the "dictionary_details" edge.
func HasDictionaryDetailsWith ¶
func HasDictionaryDetailsWith(preds ...predicate.DictionaryDetail) predicate.Dictionary
HasDictionaryDetailsWith applies the HasEdge predicate on the "dictionary_details" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uint64) predicate.Dictionary
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uint64) predicate.Dictionary
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uint64) predicate.Dictionary
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uint64) predicate.Dictionary
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uint64) predicate.Dictionary
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uint64) predicate.Dictionary
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uint64) predicate.Dictionary
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uint64) predicate.Dictionary
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.Dictionary
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Dictionary
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Dictionary
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Dictionary
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Dictionary
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Dictionary
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Dictionary
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Dictionary
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Dictionary
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Dictionary
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Dictionary
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Dictionary
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Dictionary
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Dictionary
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.Dictionary) predicate.Dictionary
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Dictionary) predicate.Dictionary
Or groups predicates with the OR operator between them.
func Status ¶
func Status(v uint8) predicate.Dictionary
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusEQ ¶
func StatusEQ(v uint8) predicate.Dictionary
StatusEQ applies the EQ predicate on the "status" field.
func StatusGT ¶
func StatusGT(v uint8) predicate.Dictionary
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v uint8) predicate.Dictionary
StatusGTE applies the GTE predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...uint8) predicate.Dictionary
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
func StatusIsNil() predicate.Dictionary
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusLT ¶
func StatusLT(v uint8) predicate.Dictionary
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v uint8) predicate.Dictionary
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v uint8) predicate.Dictionary
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...uint8) predicate.Dictionary
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
func StatusNotNil() predicate.Dictionary
StatusNotNil applies the NotNil predicate on the "status" field.
func Title ¶
func Title(v string) predicate.Dictionary
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
func TitleContains(v string) predicate.Dictionary
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
func TitleContainsFold(v string) predicate.Dictionary
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEQ ¶
func TitleEQ(v string) predicate.Dictionary
TitleEQ applies the EQ predicate on the "title" field.
func TitleEqualFold ¶
func TitleEqualFold(v string) predicate.Dictionary
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleGT ¶
func TitleGT(v string) predicate.Dictionary
TitleGT applies the GT predicate on the "title" field.
func TitleGTE ¶
func TitleGTE(v string) predicate.Dictionary
TitleGTE applies the GTE predicate on the "title" field.
func TitleHasPrefix ¶
func TitleHasPrefix(v string) predicate.Dictionary
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
func TitleHasSuffix(v string) predicate.Dictionary
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIn ¶
func TitleIn(vs ...string) predicate.Dictionary
TitleIn applies the In predicate on the "title" field.
func TitleLT ¶
func TitleLT(v string) predicate.Dictionary
TitleLT applies the LT predicate on the "title" field.
func TitleLTE ¶
func TitleLTE(v string) predicate.Dictionary
TitleLTE applies the LTE predicate on the "title" field.
func TitleNEQ ¶
func TitleNEQ(v string) predicate.Dictionary
TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNotIn ¶
func TitleNotIn(vs ...string) predicate.Dictionary
TitleNotIn applies the NotIn predicate on the "title" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Dictionary
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Dictionary
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Dictionary
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Dictionary
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Dictionary
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Dictionary
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Dictionary
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Dictionary
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Dictionary
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.