Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SetRef) predicate.SetRef
- func HasSet() predicate.SetRef
- func HasSetWith(preds ...predicate.Set) predicate.SetRef
- func ID(id int) predicate.SetRef
- func IDEQ(id int) predicate.SetRef
- func IDGT(id int) predicate.SetRef
- func IDGTE(id int) predicate.SetRef
- func IDIn(ids ...int) predicate.SetRef
- func IDLT(id int) predicate.SetRef
- func IDLTE(id int) predicate.SetRef
- func IDNEQ(id int) predicate.SetRef
- func IDNotIn(ids ...int) predicate.SetRef
- func Not(p predicate.SetRef) predicate.SetRef
- func Or(predicates ...predicate.SetRef) predicate.SetRef
- func Ref(v []byte) predicate.SetRef
- func RefEQ(v []byte) predicate.SetRef
- func RefGT(v []byte) predicate.SetRef
- func RefGTE(v []byte) predicate.SetRef
- func RefIn(vs ...[]byte) predicate.SetRef
- func RefLT(v []byte) predicate.SetRef
- func RefLTE(v []byte) predicate.SetRef
- func RefNEQ(v []byte) predicate.SetRef
- func RefNotIn(vs ...[]byte) predicate.SetRef
- func SetID(v int64) predicate.SetRef
- func SetIDEQ(v int64) predicate.SetRef
- func SetIDIn(vs ...int64) predicate.SetRef
- func SetIDNEQ(v int64) predicate.SetRef
- func SetIDNotIn(vs ...int64) predicate.SetRef
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the setref type in the database. Label = "set_ref" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSetID holds the string denoting the set_id field in the database. FieldSetID = "set_id" // FieldRef holds the string denoting the ref field in the database. FieldRef = "ref" // EdgeSet holds the string denoting the set edge name in mutations. EdgeSet = "set" // Table holds the table name of the setref in the database. Table = "set_refs" // SetTable is the table that holds the set relation/edge. SetTable = "set_refs" // SetInverseTable is the table name for the Set entity. // It exists in this package in order to avoid circular dependency with the "set" package. SetInverseTable = "sets" // SetColumn is the table column denoting the set relation/edge. SetColumn = "set_id" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldSetID, FieldRef, }
Columns holds all SQL columns for setref fields.
Functions ¶
func HasSetWith ¶
HasSetWith applies the HasEdge predicate on the "set" edge with a given conditions (other predicates).
func SetID ¶
SetID applies equality check predicate on the "set_id" field. It's identical to SetIDEQ.
func SetIDNotIn ¶
SetIDNotIn applies the NotIn predicate on the "set_id" 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 SetRef queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySetField ¶
func BySetField(field string, opts ...sql.OrderTermOption) OrderOption
BySetField orders the results by set field.
func BySetID ¶
func BySetID(opts ...sql.OrderTermOption) OrderOption
BySetID orders the results by the set_id field.
Click to show internal directories.
Click to hide internal directories.