Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Set) predicate.Set
- func Description(v string) predicate.Set
- func DescriptionContains(v string) predicate.Set
- func DescriptionContainsFold(v string) predicate.Set
- func DescriptionEQ(v string) predicate.Set
- func DescriptionEqualFold(v string) predicate.Set
- func DescriptionGT(v string) predicate.Set
- func DescriptionGTE(v string) predicate.Set
- func DescriptionHasPrefix(v string) predicate.Set
- func DescriptionHasSuffix(v string) predicate.Set
- func DescriptionIn(vs ...string) predicate.Set
- func DescriptionIsNil() predicate.Set
- func DescriptionLT(v string) predicate.Set
- func DescriptionLTE(v string) predicate.Set
- func DescriptionNEQ(v string) predicate.Set
- func DescriptionNotIn(vs ...string) predicate.Set
- func DescriptionNotNil() predicate.Set
- func HasItems() predicate.Set
- func HasItemsWith(preds ...predicate.Item) predicate.Set
- func ID(id int64) predicate.Set
- func IDEQ(id int64) predicate.Set
- func IDGT(id int64) predicate.Set
- func IDGTE(id int64) predicate.Set
- func IDIn(ids ...int64) predicate.Set
- func IDLT(id int64) predicate.Set
- func IDLTE(id int64) predicate.Set
- func IDNEQ(id int64) predicate.Set
- func IDNotIn(ids ...int64) predicate.Set
- func Name(v string) predicate.Set
- func NameContains(v string) predicate.Set
- func NameContainsFold(v string) predicate.Set
- func NameEQ(v string) predicate.Set
- func NameEqualFold(v string) predicate.Set
- func NameGT(v string) predicate.Set
- func NameGTE(v string) predicate.Set
- func NameHasPrefix(v string) predicate.Set
- func NameHasSuffix(v string) predicate.Set
- func NameIn(vs ...string) predicate.Set
- func NameLT(v string) predicate.Set
- func NameLTE(v string) predicate.Set
- func NameNEQ(v string) predicate.Set
- func NameNotIn(vs ...string) predicate.Set
- func Not(p predicate.Set) predicate.Set
- func Or(predicates ...predicate.Set) predicate.Set
- func Spec(v string) predicate.Set
- func SpecContains(v string) predicate.Set
- func SpecContainsFold(v string) predicate.Set
- func SpecEQ(v string) predicate.Set
- func SpecEqualFold(v string) predicate.Set
- func SpecGT(v string) predicate.Set
- func SpecGTE(v string) predicate.Set
- func SpecHasPrefix(v string) predicate.Set
- func SpecHasSuffix(v string) predicate.Set
- func SpecIn(vs ...string) predicate.Set
- func SpecLT(v string) predicate.Set
- func SpecLTE(v string) predicate.Set
- func SpecNEQ(v string) predicate.Set
- func SpecNotIn(vs ...string) predicate.Set
- func ValidColumn(column string) bool
- type OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByItemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySpec(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the set type in the database. Label = "set" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSpec holds the string denoting the spec field in the database. FieldSpec = "spec" // 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" // EdgeItems holds the string denoting the items edge name in mutations. EdgeItems = "items" // Table holds the table name of the set in the database. Table = "sets" // ItemsTable is the table that holds the items relation/edge. The primary key declared below. ItemsTable = "item_sets" // ItemsInverseTable is the table name for the Item entity. // It exists in this package in order to avoid circular dependency with the "item" package. ItemsInverseTable = "items" )
Variables ¶
var Columns = []string{ FieldID, FieldSpec, FieldName, FieldDescription, }
Columns holds all SQL columns for set fields.
var ( // ItemsPrimaryKey and ItemsColumn2 are the table columns denoting the // primary key for the items relation (M2M). ItemsPrimaryKey = []string{"item_id", "set_id"} )
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 DescriptionIsNil ¶
DescriptionIsNil applies the IsNil 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 DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasItemsWith ¶
HasItemsWith applies the HasEdge predicate on the "items" 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 SpecContains ¶
SpecContains applies the Contains predicate on the "spec" field.
func SpecContainsFold ¶
SpecContainsFold applies the ContainsFold predicate on the "spec" field.
func SpecEqualFold ¶
SpecEqualFold applies the EqualFold predicate on the "spec" field.
func SpecHasPrefix ¶
SpecHasPrefix applies the HasPrefix predicate on the "spec" field.
func SpecHasSuffix ¶
SpecHasSuffix applies the HasSuffix predicate on the "spec" 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 Set queries.
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 ByItems ¶
func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByItems orders the results by items terms.
func ByItemsCount ¶
func ByItemsCount(opts ...sql.OrderTermOption) OrderOption
ByItemsCount orders the results by items count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySpec ¶
func BySpec(opts ...sql.OrderTermOption) OrderOption
BySpec orders the results by the spec field.