Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.FnetSubCategory2) predicate.FnetSubCategory2
- func HasDocuments() predicate.FnetSubCategory2
- func HasDocumentsWith(preds ...predicate.FnetDocument) predicate.FnetSubCategory2
- func ID(id int) predicate.FnetSubCategory2
- func IDEQ(id int) predicate.FnetSubCategory2
- func IDGT(id int) predicate.FnetSubCategory2
- func IDGTE(id int) predicate.FnetSubCategory2
- func IDIn(ids ...int) predicate.FnetSubCategory2
- func IDLT(id int) predicate.FnetSubCategory2
- func IDLTE(id int) predicate.FnetSubCategory2
- func IDNEQ(id int) predicate.FnetSubCategory2
- func IDNotIn(ids ...int) predicate.FnetSubCategory2
- func Name(v string) predicate.FnetSubCategory2
- func NameContains(v string) predicate.FnetSubCategory2
- func NameContainsFold(v string) predicate.FnetSubCategory2
- func NameEQ(v string) predicate.FnetSubCategory2
- func NameEqualFold(v string) predicate.FnetSubCategory2
- func NameGT(v string) predicate.FnetSubCategory2
- func NameGTE(v string) predicate.FnetSubCategory2
- func NameHasPrefix(v string) predicate.FnetSubCategory2
- func NameHasSuffix(v string) predicate.FnetSubCategory2
- func NameIn(vs ...string) predicate.FnetSubCategory2
- func NameLT(v string) predicate.FnetSubCategory2
- func NameLTE(v string) predicate.FnetSubCategory2
- func NameNEQ(v string) predicate.FnetSubCategory2
- func NameNotIn(vs ...string) predicate.FnetSubCategory2
- func Not(p predicate.FnetSubCategory2) predicate.FnetSubCategory2
- func Or(predicates ...predicate.FnetSubCategory2) predicate.FnetSubCategory2
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the fnetsubcategory2 type in the database. Label = "fnet_sub_category2" // 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 fnetsubcategory2 in the database. Table = "fnet_sub_categories2" // 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_category2_id" )
Variables ¶
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for fnetsubcategory2 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.FnetSubCategory2) predicate.FnetSubCategory2
And groups predicates with the AND operator between them.
func HasDocuments ¶
func HasDocuments() predicate.FnetSubCategory2
HasDocuments applies the HasEdge predicate on the "documents" edge.
func HasDocumentsWith ¶
func HasDocumentsWith(preds ...predicate.FnetDocument) predicate.FnetSubCategory2
HasDocumentsWith applies the HasEdge predicate on the "documents" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.FnetSubCategory2
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.FnetSubCategory2
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.FnetSubCategory2
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.FnetSubCategory2
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.FnetSubCategory2
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.FnetSubCategory2
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.FnetSubCategory2
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.FnetSubCategory2
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.FnetSubCategory2
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.FnetSubCategory2
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.FnetSubCategory2
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.FnetSubCategory2
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.FnetSubCategory2
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.FnetSubCategory2
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.FnetSubCategory2
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.FnetSubCategory2
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.FnetSubCategory2
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.FnetSubCategory2
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.FnetSubCategory2
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.FnetSubCategory2
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.FnetSubCategory2
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.FnetSubCategory2
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.FnetSubCategory2) predicate.FnetSubCategory2
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.FnetSubCategory2) predicate.FnetSubCategory2
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 FnetSubCategory2 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.