Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Label) predicate.Label
- func Color(v string) predicate.Label
- func ColorContains(v string) predicate.Label
- func ColorContainsFold(v string) predicate.Label
- func ColorEQ(v string) predicate.Label
- func ColorEqualFold(v string) predicate.Label
- func ColorGT(v string) predicate.Label
- func ColorGTE(v string) predicate.Label
- func ColorHasPrefix(v string) predicate.Label
- func ColorHasSuffix(v string) predicate.Label
- func ColorIn(vs ...string) predicate.Label
- func ColorIsNil() predicate.Label
- func ColorLT(v string) predicate.Label
- func ColorLTE(v string) predicate.Label
- func ColorNEQ(v string) predicate.Label
- func ColorNotIn(vs ...string) predicate.Label
- func ColorNotNil() predicate.Label
- func CreatedAt(v time.Time) predicate.Label
- func CreatedAtEQ(v time.Time) predicate.Label
- func CreatedAtGT(v time.Time) predicate.Label
- func CreatedAtGTE(v time.Time) predicate.Label
- func CreatedAtIn(vs ...time.Time) predicate.Label
- func CreatedAtLT(v time.Time) predicate.Label
- func CreatedAtLTE(v time.Time) predicate.Label
- func CreatedAtNEQ(v time.Time) predicate.Label
- func CreatedAtNotIn(vs ...time.Time) predicate.Label
- func Description(v string) predicate.Label
- func DescriptionContains(v string) predicate.Label
- func DescriptionContainsFold(v string) predicate.Label
- func DescriptionEQ(v string) predicate.Label
- func DescriptionEqualFold(v string) predicate.Label
- func DescriptionGT(v string) predicate.Label
- func DescriptionGTE(v string) predicate.Label
- func DescriptionHasPrefix(v string) predicate.Label
- func DescriptionHasSuffix(v string) predicate.Label
- func DescriptionIn(vs ...string) predicate.Label
- func DescriptionIsNil() predicate.Label
- func DescriptionLT(v string) predicate.Label
- func DescriptionLTE(v string) predicate.Label
- func DescriptionNEQ(v string) predicate.Label
- func DescriptionNotIn(vs ...string) predicate.Label
- func DescriptionNotNil() predicate.Label
- func HasGroup() predicate.Label
- func HasGroupWith(preds ...predicate.Group) predicate.Label
- func HasItems() predicate.Label
- func HasItemsWith(preds ...predicate.Item) predicate.Label
- func ID(id uuid.UUID) predicate.Label
- func IDEQ(id uuid.UUID) predicate.Label
- func IDGT(id uuid.UUID) predicate.Label
- func IDGTE(id uuid.UUID) predicate.Label
- func IDIn(ids ...uuid.UUID) predicate.Label
- func IDLT(id uuid.UUID) predicate.Label
- func IDLTE(id uuid.UUID) predicate.Label
- func IDNEQ(id uuid.UUID) predicate.Label
- func IDNotIn(ids ...uuid.UUID) predicate.Label
- func Name(v string) predicate.Label
- func NameContains(v string) predicate.Label
- func NameContainsFold(v string) predicate.Label
- func NameEQ(v string) predicate.Label
- func NameEqualFold(v string) predicate.Label
- func NameGT(v string) predicate.Label
- func NameGTE(v string) predicate.Label
- func NameHasPrefix(v string) predicate.Label
- func NameHasSuffix(v string) predicate.Label
- func NameIn(vs ...string) predicate.Label
- func NameLT(v string) predicate.Label
- func NameLTE(v string) predicate.Label
- func NameNEQ(v string) predicate.Label
- func NameNotIn(vs ...string) predicate.Label
- func Not(p predicate.Label) predicate.Label
- func Or(predicates ...predicate.Label) predicate.Label
- func UpdatedAt(v time.Time) predicate.Label
- func UpdatedAtEQ(v time.Time) predicate.Label
- func UpdatedAtGT(v time.Time) predicate.Label
- func UpdatedAtGTE(v time.Time) predicate.Label
- func UpdatedAtIn(vs ...time.Time) predicate.Label
- func UpdatedAtLT(v time.Time) predicate.Label
- func UpdatedAtLTE(v time.Time) predicate.Label
- func UpdatedAtNEQ(v time.Time) predicate.Label
- func UpdatedAtNotIn(vs ...time.Time) predicate.Label
- func ValidColumn(column string) bool
- type OrderOption
- func ByColor(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, 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 ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the label type in the database. Label = "label" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // 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" // FieldColor holds the string denoting the color field in the database. FieldColor = "color" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // EdgeItems holds the string denoting the items edge name in mutations. EdgeItems = "items" // Table holds the table name of the label in the database. Table = "labels" // GroupTable is the table that holds the group relation/edge. GroupTable = "labels" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_labels" // ItemsTable is the table that holds the items relation/edge. The primary key declared below. ItemsTable = "label_items" // 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 ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // ColorValidator is a validator for the "color" field. It is called by the builders before save. ColorValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldColor, }
Columns holds all SQL columns for label fields.
var ForeignKeys = []string{
"group_labels",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "labels" table and are not defined as standalone fields in the schema.
var ( // ItemsPrimaryKey and ItemsColumn2 are the table columns denoting the // primary key for the items relation (M2M). ItemsPrimaryKey = []string{"label_id", "item_id"} )
Functions ¶
func Color ¶
Color applies equality check predicate on the "color" field. It's identical to ColorEQ.
func ColorContains ¶
ColorContains applies the Contains predicate on the "color" field.
func ColorContainsFold ¶
ColorContainsFold applies the ContainsFold predicate on the "color" field.
func ColorEqualFold ¶
ColorEqualFold applies the EqualFold predicate on the "color" field.
func ColorHasPrefix ¶
ColorHasPrefix applies the HasPrefix predicate on the "color" field.
func ColorHasSuffix ¶
ColorHasSuffix applies the HasSuffix predicate on the "color" field.
func ColorIsNil ¶
ColorIsNil applies the IsNil predicate on the "color" field.
func ColorNotIn ¶
ColorNotIn applies the NotIn predicate on the "color" field.
func ColorNotNil ¶
ColorNotNil applies the NotNil predicate on the "color" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
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 HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Label queries.
func ByColor ¶
func ByColor(opts ...sql.OrderTermOption) OrderOption
ByColor orders the results by the color field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group 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 ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.