Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NarInfoReference) predicate.NarInfoReference
- func HasNarinfo() predicate.NarInfoReference
- func HasNarinfoWith(preds ...predicate.NarInfo) predicate.NarInfoReference
- func ID(id int) predicate.NarInfoReference
- func IDEQ(id int) predicate.NarInfoReference
- func IDGT(id int) predicate.NarInfoReference
- func IDGTE(id int) predicate.NarInfoReference
- func IDIn(ids ...int) predicate.NarInfoReference
- func IDLT(id int) predicate.NarInfoReference
- func IDLTE(id int) predicate.NarInfoReference
- func IDNEQ(id int) predicate.NarInfoReference
- func IDNotIn(ids ...int) predicate.NarInfoReference
- func NarinfoID(v int) predicate.NarInfoReference
- func NarinfoIDEQ(v int) predicate.NarInfoReference
- func NarinfoIDIn(vs ...int) predicate.NarInfoReference
- func NarinfoIDNEQ(v int) predicate.NarInfoReference
- func NarinfoIDNotIn(vs ...int) predicate.NarInfoReference
- func Not(p predicate.NarInfoReference) predicate.NarInfoReference
- func Or(predicates ...predicate.NarInfoReference) predicate.NarInfoReference
- func Reference(v string) predicate.NarInfoReference
- func ReferenceContains(v string) predicate.NarInfoReference
- func ReferenceContainsFold(v string) predicate.NarInfoReference
- func ReferenceEQ(v string) predicate.NarInfoReference
- func ReferenceEqualFold(v string) predicate.NarInfoReference
- func ReferenceGT(v string) predicate.NarInfoReference
- func ReferenceGTE(v string) predicate.NarInfoReference
- func ReferenceHasPrefix(v string) predicate.NarInfoReference
- func ReferenceHasSuffix(v string) predicate.NarInfoReference
- func ReferenceIn(vs ...string) predicate.NarInfoReference
- func ReferenceLT(v string) predicate.NarInfoReference
- func ReferenceLTE(v string) predicate.NarInfoReference
- func ReferenceNEQ(v string) predicate.NarInfoReference
- func ReferenceNotIn(vs ...string) predicate.NarInfoReference
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the narinforeference type in the database. Label = "nar_info_reference" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNarinfoID holds the string denoting the narinfo_id field in the database. FieldNarinfoID = "narinfo_id" // FieldReference holds the string denoting the reference field in the database. FieldReference = "reference" // EdgeNarinfo holds the string denoting the narinfo edge name in mutations. EdgeNarinfo = "narinfo" // Table holds the table name of the narinforeference in the database. Table = "narinfo_references" // NarinfoTable is the table that holds the narinfo relation/edge. NarinfoTable = "narinfo_references" // NarinfoInverseTable is the table name for the NarInfo entity. // It exists in this package in order to avoid circular dependency with the "narinfo" package. NarinfoInverseTable = "narinfos" // NarinfoColumn is the table column denoting the narinfo relation/edge. NarinfoColumn = "narinfo_id" )
Variables ¶
var Columns = []string{ FieldID, FieldNarinfoID, FieldReference, }
Columns holds all SQL columns for narinforeference fields.
var ( // ReferenceValidator is a validator for the "reference" field. It is called by the builders before save. ReferenceValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.NarInfoReference) predicate.NarInfoReference
And groups predicates with the AND operator between them.
func HasNarinfo ¶
func HasNarinfo() predicate.NarInfoReference
HasNarinfo applies the HasEdge predicate on the "narinfo" edge.
func HasNarinfoWith ¶
func HasNarinfoWith(preds ...predicate.NarInfo) predicate.NarInfoReference
HasNarinfoWith applies the HasEdge predicate on the "narinfo" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.NarInfoReference
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.NarInfoReference
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.NarInfoReference
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.NarInfoReference
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.NarInfoReference
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.NarInfoReference
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.NarInfoReference
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.NarInfoReference
IDNotIn applies the NotIn predicate on the ID field.
func NarinfoID ¶
func NarinfoID(v int) predicate.NarInfoReference
NarinfoID applies equality check predicate on the "narinfo_id" field. It's identical to NarinfoIDEQ.
func NarinfoIDEQ ¶
func NarinfoIDEQ(v int) predicate.NarInfoReference
NarinfoIDEQ applies the EQ predicate on the "narinfo_id" field.
func NarinfoIDIn ¶
func NarinfoIDIn(vs ...int) predicate.NarInfoReference
NarinfoIDIn applies the In predicate on the "narinfo_id" field.
func NarinfoIDNEQ ¶
func NarinfoIDNEQ(v int) predicate.NarInfoReference
NarinfoIDNEQ applies the NEQ predicate on the "narinfo_id" field.
func NarinfoIDNotIn ¶
func NarinfoIDNotIn(vs ...int) predicate.NarInfoReference
NarinfoIDNotIn applies the NotIn predicate on the "narinfo_id" field.
func Not ¶
func Not(p predicate.NarInfoReference) predicate.NarInfoReference
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.NarInfoReference) predicate.NarInfoReference
Or groups predicates with the OR operator between them.
func Reference ¶
func Reference(v string) predicate.NarInfoReference
Reference applies equality check predicate on the "reference" field. It's identical to ReferenceEQ.
func ReferenceContains ¶
func ReferenceContains(v string) predicate.NarInfoReference
ReferenceContains applies the Contains predicate on the "reference" field.
func ReferenceContainsFold ¶
func ReferenceContainsFold(v string) predicate.NarInfoReference
ReferenceContainsFold applies the ContainsFold predicate on the "reference" field.
func ReferenceEQ ¶
func ReferenceEQ(v string) predicate.NarInfoReference
ReferenceEQ applies the EQ predicate on the "reference" field.
func ReferenceEqualFold ¶
func ReferenceEqualFold(v string) predicate.NarInfoReference
ReferenceEqualFold applies the EqualFold predicate on the "reference" field.
func ReferenceGT ¶
func ReferenceGT(v string) predicate.NarInfoReference
ReferenceGT applies the GT predicate on the "reference" field.
func ReferenceGTE ¶
func ReferenceGTE(v string) predicate.NarInfoReference
ReferenceGTE applies the GTE predicate on the "reference" field.
func ReferenceHasPrefix ¶
func ReferenceHasPrefix(v string) predicate.NarInfoReference
ReferenceHasPrefix applies the HasPrefix predicate on the "reference" field.
func ReferenceHasSuffix ¶
func ReferenceHasSuffix(v string) predicate.NarInfoReference
ReferenceHasSuffix applies the HasSuffix predicate on the "reference" field.
func ReferenceIn ¶
func ReferenceIn(vs ...string) predicate.NarInfoReference
ReferenceIn applies the In predicate on the "reference" field.
func ReferenceLT ¶
func ReferenceLT(v string) predicate.NarInfoReference
ReferenceLT applies the LT predicate on the "reference" field.
func ReferenceLTE ¶
func ReferenceLTE(v string) predicate.NarInfoReference
ReferenceLTE applies the LTE predicate on the "reference" field.
func ReferenceNEQ ¶
func ReferenceNEQ(v string) predicate.NarInfoReference
ReferenceNEQ applies the NEQ predicate on the "reference" field.
func ReferenceNotIn ¶
func ReferenceNotIn(vs ...string) predicate.NarInfoReference
ReferenceNotIn applies the NotIn predicate on the "reference" 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 NarInfoReference queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNarinfoField ¶
func ByNarinfoField(field string, opts ...sql.OrderTermOption) OrderOption
ByNarinfoField orders the results by narinfo field.
func ByNarinfoID ¶
func ByNarinfoID(opts ...sql.OrderTermOption) OrderOption
ByNarinfoID orders the results by the narinfo_id field.
func ByReference ¶
func ByReference(opts ...sql.OrderTermOption) OrderOption
ByReference orders the results by the reference field.