Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.FnetSubCategory1) predicate.FnetSubCategory1
- func HasDocuments() predicate.FnetSubCategory1
- func HasDocumentsWith(preds ...predicate.FnetDocument) predicate.FnetSubCategory1
- func ID(id int) predicate.FnetSubCategory1
- func IDEQ(id int) predicate.FnetSubCategory1
- func IDGT(id int) predicate.FnetSubCategory1
- func IDGTE(id int) predicate.FnetSubCategory1
- func IDIn(ids ...int) predicate.FnetSubCategory1
- func IDLT(id int) predicate.FnetSubCategory1
- func IDLTE(id int) predicate.FnetSubCategory1
- func IDNEQ(id int) predicate.FnetSubCategory1
- func IDNotIn(ids ...int) predicate.FnetSubCategory1
- func Name(v string) predicate.FnetSubCategory1
- func NameContains(v string) predicate.FnetSubCategory1
- func NameContainsFold(v string) predicate.FnetSubCategory1
- func NameEQ(v string) predicate.FnetSubCategory1
- func NameEqualFold(v string) predicate.FnetSubCategory1
- func NameGT(v string) predicate.FnetSubCategory1
- func NameGTE(v string) predicate.FnetSubCategory1
- func NameHasPrefix(v string) predicate.FnetSubCategory1
- func NameHasSuffix(v string) predicate.FnetSubCategory1
- func NameIn(vs ...string) predicate.FnetSubCategory1
- func NameLT(v string) predicate.FnetSubCategory1
- func NameLTE(v string) predicate.FnetSubCategory1
- func NameNEQ(v string) predicate.FnetSubCategory1
- func NameNotIn(vs ...string) predicate.FnetSubCategory1
- func Not(p predicate.FnetSubCategory1) predicate.FnetSubCategory1
- func Or(predicates ...predicate.FnetSubCategory1) predicate.FnetSubCategory1
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the fnetsubcategory1 type in the database. Label = "fnet_sub_category1" // 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" // EdgeDocuments holds the string denoting the documents edge name in mutations. EdgeDocuments = "documents" // Table holds the table name of the fnetsubcategory1 in the database. Table = "fnet_sub_categories1" // DocumentsTable is the table that holds the documents relation/edge. DocumentsTable = "fnet_documents" // DocumentsInverseTable is the table name for the FnetDocument entity. // It exists in this package in order to avoid circular dependency with the "fnetdocument" package. DocumentsInverseTable = "fnet_documents" // DocumentsColumn is the table column denoting the documents relation/edge. DocumentsColumn = "sub_category1_id" )
Variables ¶
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for fnetsubcategory1 fields.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.FnetSubCategory1) predicate.FnetSubCategory1
And groups predicates with the AND operator between them.
func HasDocuments ¶
func HasDocuments() predicate.FnetSubCategory1
HasDocuments applies the HasEdge predicate on the "documents" edge.
func HasDocumentsWith ¶
func HasDocumentsWith(preds ...predicate.FnetDocument) predicate.FnetSubCategory1
HasDocumentsWith applies the HasEdge predicate on the "documents" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.FnetSubCategory1
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.FnetSubCategory1
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.FnetSubCategory1
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.FnetSubCategory1
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.FnetSubCategory1
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.FnetSubCategory1
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.FnetSubCategory1
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.FnetSubCategory1
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.FnetSubCategory1
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.FnetSubCategory1
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.FnetSubCategory1
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.FnetSubCategory1
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.FnetSubCategory1
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.FnetSubCategory1
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.FnetSubCategory1
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.FnetSubCategory1
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.FnetSubCategory1
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.FnetSubCategory1
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.FnetSubCategory1
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.FnetSubCategory1
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.FnetSubCategory1
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.FnetSubCategory1
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.FnetSubCategory1) predicate.FnetSubCategory1
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.FnetSubCategory1) predicate.FnetSubCategory1
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the FnetSubCategory1 queries.
func ByDocuments ¶
func ByDocuments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDocuments orders the results by documents terms.
func ByDocumentsCount ¶
func ByDocumentsCount(opts ...sql.OrderTermOption) OrderOption
ByDocumentsCount orders the results by documents 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.