Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Portal) predicate.Portal
- func Description(v string) predicate.Portal
- func DescriptionContains(v string) predicate.Portal
- func DescriptionContainsFold(v string) predicate.Portal
- func DescriptionEQ(v string) predicate.Portal
- func DescriptionEqualFold(v string) predicate.Portal
- func DescriptionGT(v string) predicate.Portal
- func DescriptionGTE(v string) predicate.Portal
- func DescriptionHasPrefix(v string) predicate.Portal
- func DescriptionHasSuffix(v string) predicate.Portal
- func DescriptionIn(vs ...string) predicate.Portal
- func DescriptionLT(v string) predicate.Portal
- func DescriptionLTE(v string) predicate.Portal
- func DescriptionNEQ(v string) predicate.Portal
- func DescriptionNotIn(vs ...string) predicate.Portal
- func HasCategory() predicate.Portal
- func HasCategoryWith(preds ...predicate.Category) predicate.Portal
- func ID(id int) predicate.Portal
- func IDEQ(id int) predicate.Portal
- func IDGT(id int) predicate.Portal
- func IDGTE(id int) predicate.Portal
- func IDIn(ids ...int) predicate.Portal
- func IDLT(id int) predicate.Portal
- func IDLTE(id int) predicate.Portal
- func IDNEQ(id int) predicate.Portal
- func IDNotIn(ids ...int) predicate.Portal
- func Name(v string) predicate.Portal
- func NameContains(v string) predicate.Portal
- func NameContainsFold(v string) predicate.Portal
- func NameEQ(v string) predicate.Portal
- func NameEqualFold(v string) predicate.Portal
- func NameGT(v string) predicate.Portal
- func NameGTE(v string) predicate.Portal
- func NameHasPrefix(v string) predicate.Portal
- func NameHasSuffix(v string) predicate.Portal
- func NameIn(vs ...string) predicate.Portal
- func NameLT(v string) predicate.Portal
- func NameLTE(v string) predicate.Portal
- func NameNEQ(v string) predicate.Portal
- func NameNotIn(vs ...string) predicate.Portal
- func Not(p predicate.Portal) predicate.Portal
- func Or(predicates ...predicate.Portal) predicate.Portal
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the portal type in the database. Label = "portal" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeCategory holds the string denoting the category edge name in mutations. EdgeCategory = "category" // Table holds the table name of the portal in the database. Table = "portals" // CategoryTable is the table that holds the category relation/edge. CategoryTable = "portals" // CategoryInverseTable is the table name for the Category entity. // It exists in this package in order to avoid circular dependency with the "category" package. CategoryInverseTable = "categories" // CategoryColumn is the table column denoting the category relation/edge. CategoryColumn = "portal_category" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldDescription, }
Columns holds all SQL columns for portal fields.
var ForeignKeys = []string{
"portal_category",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "portals" table and are not defined as standalone fields in the schema.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasCategory ¶
HasCategory applies the HasEdge predicate on the "category" edge.
func HasCategoryWith ¶
HasCategoryWith applies the HasEdge predicate on the "category" 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 Portal queries.
func ByCategoryField ¶
func ByCategoryField(field string, opts ...sql.OrderTermOption) OrderOption
ByCategoryField orders the results by category field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
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.