Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Varsity) predicate.Varsity
- func Code(v string) predicate.Varsity
- func CodeContains(v string) predicate.Varsity
- func CodeContainsFold(v string) predicate.Varsity
- func CodeEQ(v string) predicate.Varsity
- func CodeEqualFold(v string) predicate.Varsity
- func CodeGT(v string) predicate.Varsity
- func CodeGTE(v string) predicate.Varsity
- func CodeHasPrefix(v string) predicate.Varsity
- func CodeHasSuffix(v string) predicate.Varsity
- func CodeIn(vs ...string) predicate.Varsity
- func CodeLT(v string) predicate.Varsity
- func CodeLTE(v string) predicate.Varsity
- func CodeNEQ(v string) predicate.Varsity
- func CodeNotIn(vs ...string) predicate.Varsity
- func HasHeadings() predicate.Varsity
- func HasHeadingsWith(preds ...predicate.Heading) predicate.Varsity
- func ID(id int) predicate.Varsity
- func IDEQ(id int) predicate.Varsity
- func IDGT(id int) predicate.Varsity
- func IDGTE(id int) predicate.Varsity
- func IDIn(ids ...int) predicate.Varsity
- func IDLT(id int) predicate.Varsity
- func IDLTE(id int) predicate.Varsity
- func IDNEQ(id int) predicate.Varsity
- func IDNotIn(ids ...int) predicate.Varsity
- func Name(v string) predicate.Varsity
- func NameContains(v string) predicate.Varsity
- func NameContainsFold(v string) predicate.Varsity
- func NameEQ(v string) predicate.Varsity
- func NameEqualFold(v string) predicate.Varsity
- func NameGT(v string) predicate.Varsity
- func NameGTE(v string) predicate.Varsity
- func NameHasPrefix(v string) predicate.Varsity
- func NameHasSuffix(v string) predicate.Varsity
- func NameIn(vs ...string) predicate.Varsity
- func NameLT(v string) predicate.Varsity
- func NameLTE(v string) predicate.Varsity
- func NameNEQ(v string) predicate.Varsity
- func NameNotIn(vs ...string) predicate.Varsity
- func Not(p predicate.Varsity) predicate.Varsity
- func Or(predicates ...predicate.Varsity) predicate.Varsity
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the varsity type in the database. Label = "varsity" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeHeadings holds the string denoting the headings edge name in mutations. EdgeHeadings = "headings" // Table holds the table name of the varsity in the database. Table = "varsities" // HeadingsTable is the table that holds the headings relation/edge. HeadingsTable = "headings" // HeadingsInverseTable is the table name for the Heading entity. // It exists in this package in order to avoid circular dependency with the "heading" package. HeadingsInverseTable = "headings" // HeadingsColumn is the table column denoting the headings relation/edge. HeadingsColumn = "varsity_headings" )
Variables ¶
var Columns = []string{ FieldID, FieldCode, FieldName, }
Columns holds all SQL columns for varsity 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 HasHeadings ¶
HasHeadings applies the HasEdge predicate on the "headings" edge.
func HasHeadingsWith ¶
HasHeadingsWith applies the HasEdge predicate on the "headings" 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 Varsity queries.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByHeadings ¶
func ByHeadings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByHeadings orders the results by headings terms.
func ByHeadingsCount ¶
func ByHeadingsCount(opts ...sql.OrderTermOption) OrderOption
ByHeadingsCount orders the results by headings count.
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.