Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dictionary) predicate.Dictionary
- func Code(v string) predicate.Dictionary
- func CodeContains(v string) predicate.Dictionary
- func CodeContainsFold(v string) predicate.Dictionary
- func CodeEQ(v string) predicate.Dictionary
- func CodeEqualFold(v string) predicate.Dictionary
- func CodeGT(v string) predicate.Dictionary
- func CodeGTE(v string) predicate.Dictionary
- func CodeHasPrefix(v string) predicate.Dictionary
- func CodeHasSuffix(v string) predicate.Dictionary
- func CodeIn(vs ...string) predicate.Dictionary
- func CodeLT(v string) predicate.Dictionary
- func CodeLTE(v string) predicate.Dictionary
- func CodeNEQ(v string) predicate.Dictionary
- func CodeNotIn(vs ...string) predicate.Dictionary
- func Description(v string) predicate.Dictionary
- func DescriptionContains(v string) predicate.Dictionary
- func DescriptionContainsFold(v string) predicate.Dictionary
- func DescriptionEQ(v string) predicate.Dictionary
- func DescriptionEqualFold(v string) predicate.Dictionary
- func DescriptionGT(v string) predicate.Dictionary
- func DescriptionGTE(v string) predicate.Dictionary
- func DescriptionHasPrefix(v string) predicate.Dictionary
- func DescriptionHasSuffix(v string) predicate.Dictionary
- func DescriptionIn(vs ...string) predicate.Dictionary
- func DescriptionIsNil() predicate.Dictionary
- func DescriptionLT(v string) predicate.Dictionary
- func DescriptionLTE(v string) predicate.Dictionary
- func DescriptionNEQ(v string) predicate.Dictionary
- func DescriptionNotIn(vs ...string) predicate.Dictionary
- func DescriptionNotNil() predicate.Dictionary
- func HasEntries() predicate.Dictionary
- func HasEntriesWith(preds ...predicate.DictionaryEntry) predicate.Dictionary
- func ID(id int) predicate.Dictionary
- func IDEQ(id int) predicate.Dictionary
- func IDGT(id int) predicate.Dictionary
- func IDGTE(id int) predicate.Dictionary
- func IDIn(ids ...int) predicate.Dictionary
- func IDLT(id int) predicate.Dictionary
- func IDLTE(id int) predicate.Dictionary
- func IDNEQ(id int) predicate.Dictionary
- func IDNotIn(ids ...int) predicate.Dictionary
- func Not(p predicate.Dictionary) predicate.Dictionary
- func Or(predicates ...predicate.Dictionary) 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" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeEntries holds the string denoting the entries edge name in mutations. EdgeEntries = "entries" // Table holds the table name of the dictionary in the database. Table = "dictionaries" // EntriesTable is the table the holds the entries relation/edge. EntriesTable = "dictionary_entries" // EntriesInverseTable is the table name for the DictionaryEntry entity. // It exists in this package in order to avoid circular dependency with the "dictionaryentry" package. EntriesInverseTable = "dictionary_entries" // EntriesColumn is the table column denoting the entries relation/edge. EntriesColumn = "dictionary_entries" )
Variables ¶
var ( // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int) error )
var Columns = []string{ FieldID, FieldCode, FieldDescription, }
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 Code ¶
func Code(v string) predicate.Dictionary
Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
func CodeContains ¶
func CodeContains(v string) predicate.Dictionary
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
func CodeContainsFold(v string) predicate.Dictionary
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEQ ¶
func CodeEQ(v string) predicate.Dictionary
CodeEQ applies the EQ predicate on the "code" field.
func CodeEqualFold ¶
func CodeEqualFold(v string) predicate.Dictionary
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeGT ¶
func CodeGT(v string) predicate.Dictionary
CodeGT applies the GT predicate on the "code" field.
func CodeGTE ¶
func CodeGTE(v string) predicate.Dictionary
CodeGTE applies the GTE predicate on the "code" field.
func CodeHasPrefix ¶
func CodeHasPrefix(v string) predicate.Dictionary
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
func CodeHasSuffix(v string) predicate.Dictionary
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeIn ¶
func CodeIn(vs ...string) predicate.Dictionary
CodeIn applies the In predicate on the "code" field.
func CodeLT ¶
func CodeLT(v string) predicate.Dictionary
CodeLT applies the LT predicate on the "code" field.
func CodeLTE ¶
func CodeLTE(v string) predicate.Dictionary
CodeLTE applies the LTE predicate on the "code" field.
func CodeNEQ ¶
func CodeNEQ(v string) predicate.Dictionary
CodeNEQ applies the NEQ predicate on the "code" field.
func CodeNotIn ¶
func CodeNotIn(vs ...string) predicate.Dictionary
CodeNotIn applies the NotIn predicate on the "code" field.
func Description ¶
func Description(v string) predicate.Dictionary
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.Dictionary
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.Dictionary
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.Dictionary
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.Dictionary
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.Dictionary
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.Dictionary
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.Dictionary
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.Dictionary
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.Dictionary
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.Dictionary
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.Dictionary
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.Dictionary
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.Dictionary
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.Dictionary
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.Dictionary
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasEntries ¶
func HasEntries() predicate.Dictionary
HasEntries applies the HasEdge predicate on the "entries" edge.
func HasEntriesWith ¶
func HasEntriesWith(preds ...predicate.DictionaryEntry) predicate.Dictionary
HasEntriesWith applies the HasEdge predicate on the "entries" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Dictionary
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Dictionary
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Dictionary
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Dictionary
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Dictionary
IDNotIn applies the NotIn predicate on the ID 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.