Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Set) predicate.Set
- func Code(v string) predicate.Set
- func CodeContains(v string) predicate.Set
- func CodeContainsFold(v string) predicate.Set
- func CodeEQ(v string) predicate.Set
- func CodeEqualFold(v string) predicate.Set
- func CodeGT(v string) predicate.Set
- func CodeGTE(v string) predicate.Set
- func CodeHasPrefix(v string) predicate.Set
- func CodeHasSuffix(v string) predicate.Set
- func CodeIn(vs ...string) predicate.Set
- func CodeLT(v string) predicate.Set
- func CodeLTE(v string) predicate.Set
- func CodeNEQ(v string) predicate.Set
- func CodeNotIn(vs ...string) predicate.Set
- func HasPrintings() predicate.Set
- func HasPrintingsWith(preds ...predicate.Printing) predicate.Set
- func ID(id int) predicate.Set
- func IDEQ(id int) predicate.Set
- func IDGT(id int) predicate.Set
- func IDGTE(id int) predicate.Set
- func IDIn(ids ...int) predicate.Set
- func IDLT(id int) predicate.Set
- func IDLTE(id int) predicate.Set
- func IDNEQ(id int) predicate.Set
- func IDNotIn(ids ...int) predicate.Set
- func Name(v string) predicate.Set
- func NameContains(v string) predicate.Set
- func NameContainsFold(v string) predicate.Set
- func NameEQ(v string) predicate.Set
- func NameEqualFold(v string) predicate.Set
- func NameGT(v string) predicate.Set
- func NameGTE(v string) predicate.Set
- func NameHasPrefix(v string) predicate.Set
- func NameHasSuffix(v string) predicate.Set
- func NameIn(vs ...string) predicate.Set
- func NameLT(v string) predicate.Set
- func NameLTE(v string) predicate.Set
- func NameNEQ(v string) predicate.Set
- func NameNotIn(vs ...string) predicate.Set
- func Not(p predicate.Set) predicate.Set
- func Or(predicates ...predicate.Set) predicate.Set
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the set type in the database. Label = "set" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // EdgePrintings holds the string denoting the printings edge name in mutations. EdgePrintings = "printings" // Table holds the table name of the set in the database. Table = "sets" // PrintingsTable is the table that holds the printings relation/edge. PrintingsTable = "printings" // PrintingsInverseTable is the table name for the Printing entity. // It exists in this package in order to avoid circular dependency with the "printing" package. PrintingsInverseTable = "printings" // PrintingsColumn is the table column denoting the printings relation/edge. PrintingsColumn = "printing_set" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldCode, }
Columns holds all SQL columns for set 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 HasPrintings ¶
HasPrintings applies the HasEdge predicate on the "printings" edge.
func HasPrintingsWith ¶
HasPrintingsWith applies the HasEdge predicate on the "printings" edge with a given conditions (other predicates).
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Set queries.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPrintings ¶
func ByPrintings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPrintings orders the results by printings terms.
func ByPrintingsCount ¶
func ByPrintingsCount(opts ...sql.OrderTermOption) OrderOption
ByPrintingsCount orders the results by printings count.