Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ItemField) predicate.ItemField
- func BooleanValue(v bool) predicate.ItemField
- func BooleanValueEQ(v bool) predicate.ItemField
- func BooleanValueNEQ(v bool) predicate.ItemField
- func CreatedAt(v time.Time) predicate.ItemField
- func CreatedAtEQ(v time.Time) predicate.ItemField
- func CreatedAtGT(v time.Time) predicate.ItemField
- func CreatedAtGTE(v time.Time) predicate.ItemField
- func CreatedAtIn(vs ...time.Time) predicate.ItemField
- func CreatedAtLT(v time.Time) predicate.ItemField
- func CreatedAtLTE(v time.Time) predicate.ItemField
- func CreatedAtNEQ(v time.Time) predicate.ItemField
- func CreatedAtNotIn(vs ...time.Time) predicate.ItemField
- func Description(v string) predicate.ItemField
- func DescriptionContains(v string) predicate.ItemField
- func DescriptionContainsFold(v string) predicate.ItemField
- func DescriptionEQ(v string) predicate.ItemField
- func DescriptionEqualFold(v string) predicate.ItemField
- func DescriptionGT(v string) predicate.ItemField
- func DescriptionGTE(v string) predicate.ItemField
- func DescriptionHasPrefix(v string) predicate.ItemField
- func DescriptionHasSuffix(v string) predicate.ItemField
- func DescriptionIn(vs ...string) predicate.ItemField
- func DescriptionIsNil() predicate.ItemField
- func DescriptionLT(v string) predicate.ItemField
- func DescriptionLTE(v string) predicate.ItemField
- func DescriptionNEQ(v string) predicate.ItemField
- func DescriptionNotIn(vs ...string) predicate.ItemField
- func DescriptionNotNil() predicate.ItemField
- func HasItem() predicate.ItemField
- func HasItemWith(preds ...predicate.Item) predicate.ItemField
- func ID(id uuid.UUID) predicate.ItemField
- func IDEQ(id uuid.UUID) predicate.ItemField
- func IDGT(id uuid.UUID) predicate.ItemField
- func IDGTE(id uuid.UUID) predicate.ItemField
- func IDIn(ids ...uuid.UUID) predicate.ItemField
- func IDLT(id uuid.UUID) predicate.ItemField
- func IDLTE(id uuid.UUID) predicate.ItemField
- func IDNEQ(id uuid.UUID) predicate.ItemField
- func IDNotIn(ids ...uuid.UUID) predicate.ItemField
- func Name(v string) predicate.ItemField
- func NameContains(v string) predicate.ItemField
- func NameContainsFold(v string) predicate.ItemField
- func NameEQ(v string) predicate.ItemField
- func NameEqualFold(v string) predicate.ItemField
- func NameGT(v string) predicate.ItemField
- func NameGTE(v string) predicate.ItemField
- func NameHasPrefix(v string) predicate.ItemField
- func NameHasSuffix(v string) predicate.ItemField
- func NameIn(vs ...string) predicate.ItemField
- func NameLT(v string) predicate.ItemField
- func NameLTE(v string) predicate.ItemField
- func NameNEQ(v string) predicate.ItemField
- func NameNotIn(vs ...string) predicate.ItemField
- func Not(p predicate.ItemField) predicate.ItemField
- func NumberValue(v int) predicate.ItemField
- func NumberValueEQ(v int) predicate.ItemField
- func NumberValueGT(v int) predicate.ItemField
- func NumberValueGTE(v int) predicate.ItemField
- func NumberValueIn(vs ...int) predicate.ItemField
- func NumberValueIsNil() predicate.ItemField
- func NumberValueLT(v int) predicate.ItemField
- func NumberValueLTE(v int) predicate.ItemField
- func NumberValueNEQ(v int) predicate.ItemField
- func NumberValueNotIn(vs ...int) predicate.ItemField
- func NumberValueNotNil() predicate.ItemField
- func Or(predicates ...predicate.ItemField) predicate.ItemField
- func TextValue(v string) predicate.ItemField
- func TextValueContains(v string) predicate.ItemField
- func TextValueContainsFold(v string) predicate.ItemField
- func TextValueEQ(v string) predicate.ItemField
- func TextValueEqualFold(v string) predicate.ItemField
- func TextValueGT(v string) predicate.ItemField
- func TextValueGTE(v string) predicate.ItemField
- func TextValueHasPrefix(v string) predicate.ItemField
- func TextValueHasSuffix(v string) predicate.ItemField
- func TextValueIn(vs ...string) predicate.ItemField
- func TextValueIsNil() predicate.ItemField
- func TextValueLT(v string) predicate.ItemField
- func TextValueLTE(v string) predicate.ItemField
- func TextValueNEQ(v string) predicate.ItemField
- func TextValueNotIn(vs ...string) predicate.ItemField
- func TextValueNotNil() predicate.ItemField
- func TimeValue(v time.Time) predicate.ItemField
- func TimeValueEQ(v time.Time) predicate.ItemField
- func TimeValueGT(v time.Time) predicate.ItemField
- func TimeValueGTE(v time.Time) predicate.ItemField
- func TimeValueIn(vs ...time.Time) predicate.ItemField
- func TimeValueLT(v time.Time) predicate.ItemField
- func TimeValueLTE(v time.Time) predicate.ItemField
- func TimeValueNEQ(v time.Time) predicate.ItemField
- func TimeValueNotIn(vs ...time.Time) predicate.ItemField
- func TypeEQ(v Type) predicate.ItemField
- func TypeIn(vs ...Type) predicate.ItemField
- func TypeNEQ(v Type) predicate.ItemField
- func TypeNotIn(vs ...Type) predicate.ItemField
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.ItemField
- func UpdatedAtEQ(v time.Time) predicate.ItemField
- func UpdatedAtGT(v time.Time) predicate.ItemField
- func UpdatedAtGTE(v time.Time) predicate.ItemField
- func UpdatedAtIn(vs ...time.Time) predicate.ItemField
- func UpdatedAtLT(v time.Time) predicate.ItemField
- func UpdatedAtLTE(v time.Time) predicate.ItemField
- func UpdatedAtNEQ(v time.Time) predicate.ItemField
- func UpdatedAtNotIn(vs ...time.Time) predicate.ItemField
- func ValidColumn(column string) bool
- type OrderOption
- func ByBooleanValue(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByItemField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNumberValue(opts ...sql.OrderTermOption) OrderOption
- func ByTextValue(opts ...sql.OrderTermOption) OrderOption
- func ByTimeValue(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the itemfield type in the database. Label = "item_field" // 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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldTextValue holds the string denoting the text_value field in the database. FieldTextValue = "text_value" // FieldNumberValue holds the string denoting the number_value field in the database. FieldNumberValue = "number_value" // FieldBooleanValue holds the string denoting the boolean_value field in the database. FieldBooleanValue = "boolean_value" // FieldTimeValue holds the string denoting the time_value field in the database. FieldTimeValue = "time_value" // EdgeItem holds the string denoting the item edge name in mutations. EdgeItem = "item" // Table holds the table name of the itemfield in the database. Table = "item_fields" // ItemTable is the table that holds the item relation/edge. ItemTable = "item_fields" // ItemInverseTable is the table name for the Item entity. // It exists in this package in order to avoid circular dependency with the "item" package. ItemInverseTable = "items" // ItemColumn is the table column denoting the item relation/edge. ItemColumn = "item_fields" )
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 // TextValueValidator is a validator for the "text_value" field. It is called by the builders before save. TextValueValidator func(string) error // DefaultBooleanValue holds the default value on creation for the "boolean_value" field. DefaultBooleanValue bool // DefaultTimeValue holds the default value on creation for the "time_value" field. DefaultTimeValue func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldType, FieldTextValue, FieldNumberValue, FieldBooleanValue, FieldTimeValue, }
Columns holds all SQL columns for itemfield fields.
var ForeignKeys = []string{
"item_fields",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "item_fields" table and are not defined as standalone fields in the schema.
Functions ¶
func BooleanValue ¶
BooleanValue applies equality check predicate on the "boolean_value" field. It's identical to BooleanValueEQ.
func BooleanValueEQ ¶
BooleanValueEQ applies the EQ predicate on the "boolean_value" field.
func BooleanValueNEQ ¶
BooleanValueNEQ applies the NEQ predicate on the "boolean_value" 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 HasItemWith ¶
HasItemWith applies the HasEdge predicate on the "item" 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 NumberValue ¶
NumberValue applies equality check predicate on the "number_value" field. It's identical to NumberValueEQ.
func NumberValueEQ ¶
NumberValueEQ applies the EQ predicate on the "number_value" field.
func NumberValueGT ¶
NumberValueGT applies the GT predicate on the "number_value" field.
func NumberValueGTE ¶
NumberValueGTE applies the GTE predicate on the "number_value" field.
func NumberValueIn ¶
NumberValueIn applies the In predicate on the "number_value" field.
func NumberValueIsNil ¶
NumberValueIsNil applies the IsNil predicate on the "number_value" field.
func NumberValueLT ¶
NumberValueLT applies the LT predicate on the "number_value" field.
func NumberValueLTE ¶
NumberValueLTE applies the LTE predicate on the "number_value" field.
func NumberValueNEQ ¶
NumberValueNEQ applies the NEQ predicate on the "number_value" field.
func NumberValueNotIn ¶
NumberValueNotIn applies the NotIn predicate on the "number_value" field.
func NumberValueNotNil ¶
NumberValueNotNil applies the NotNil predicate on the "number_value" field.
func TextValue ¶
TextValue applies equality check predicate on the "text_value" field. It's identical to TextValueEQ.
func TextValueContains ¶
TextValueContains applies the Contains predicate on the "text_value" field.
func TextValueContainsFold ¶
TextValueContainsFold applies the ContainsFold predicate on the "text_value" field.
func TextValueEQ ¶
TextValueEQ applies the EQ predicate on the "text_value" field.
func TextValueEqualFold ¶
TextValueEqualFold applies the EqualFold predicate on the "text_value" field.
func TextValueGT ¶
TextValueGT applies the GT predicate on the "text_value" field.
func TextValueGTE ¶
TextValueGTE applies the GTE predicate on the "text_value" field.
func TextValueHasPrefix ¶
TextValueHasPrefix applies the HasPrefix predicate on the "text_value" field.
func TextValueHasSuffix ¶
TextValueHasSuffix applies the HasSuffix predicate on the "text_value" field.
func TextValueIn ¶
TextValueIn applies the In predicate on the "text_value" field.
func TextValueIsNil ¶
TextValueIsNil applies the IsNil predicate on the "text_value" field.
func TextValueLT ¶
TextValueLT applies the LT predicate on the "text_value" field.
func TextValueLTE ¶
TextValueLTE applies the LTE predicate on the "text_value" field.
func TextValueNEQ ¶
TextValueNEQ applies the NEQ predicate on the "text_value" field.
func TextValueNotIn ¶
TextValueNotIn applies the NotIn predicate on the "text_value" field.
func TextValueNotNil ¶
TextValueNotNil applies the NotNil predicate on the "text_value" field.
func TimeValue ¶
TimeValue applies equality check predicate on the "time_value" field. It's identical to TimeValueEQ.
func TimeValueEQ ¶
TimeValueEQ applies the EQ predicate on the "time_value" field.
func TimeValueGT ¶
TimeValueGT applies the GT predicate on the "time_value" field.
func TimeValueGTE ¶
TimeValueGTE applies the GTE predicate on the "time_value" field.
func TimeValueIn ¶
TimeValueIn applies the In predicate on the "time_value" field.
func TimeValueLT ¶
TimeValueLT applies the LT predicate on the "time_value" field.
func TimeValueLTE ¶
TimeValueLTE applies the LTE predicate on the "time_value" field.
func TimeValueNEQ ¶
TimeValueNEQ applies the NEQ predicate on the "time_value" field.
func TimeValueNotIn ¶
TimeValueNotIn applies the NotIn predicate on the "time_value" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 ItemField queries.
func ByBooleanValue ¶
func ByBooleanValue(opts ...sql.OrderTermOption) OrderOption
ByBooleanValue orders the results by the boolean_value 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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByItemField ¶
func ByItemField(field string, opts ...sql.OrderTermOption) OrderOption
ByItemField orders the results by item field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNumberValue ¶
func ByNumberValue(opts ...sql.OrderTermOption) OrderOption
ByNumberValue orders the results by the number_value field.
func ByTextValue ¶
func ByTextValue(opts ...sql.OrderTermOption) OrderOption
ByTextValue orders the results by the text_value field.
func ByTimeValue ¶
func ByTimeValue(opts ...sql.OrderTermOption) OrderOption
ByTimeValue orders the results by the time_value field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.