itemfield

package
v0.0.0-...-6fd8457 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for itemfield fields.

View Source
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 And

func And(predicates ...predicate.ItemField) predicate.ItemField

And groups predicates with the AND operator between them.

func BooleanValue

func BooleanValue(v bool) predicate.ItemField

BooleanValue applies equality check predicate on the "boolean_value" field. It's identical to BooleanValueEQ.

func BooleanValueEQ

func BooleanValueEQ(v bool) predicate.ItemField

BooleanValueEQ applies the EQ predicate on the "boolean_value" field.

func BooleanValueNEQ

func BooleanValueNEQ(v bool) predicate.ItemField

BooleanValueNEQ applies the NEQ predicate on the "boolean_value" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ItemField

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ItemField

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ItemField

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ItemField

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.ItemField

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ItemField

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ItemField

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ItemField

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.ItemField

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.ItemField

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.ItemField

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.ItemField

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.ItemField

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.ItemField

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.ItemField

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.ItemField

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.ItemField

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.ItemField

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.ItemField

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.ItemField

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.ItemField

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.ItemField

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.ItemField

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.ItemField

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.ItemField

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasItem

func HasItem() predicate.ItemField

HasItem applies the HasEdge predicate on the "item" edge.

func HasItemWith

func HasItemWith(preds ...predicate.Item) predicate.ItemField

HasItemWith applies the HasEdge predicate on the "item" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ItemField

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ItemField

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ItemField

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.ItemField

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ItemField

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ItemField

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ItemField

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ItemField

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.ItemField

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.ItemField

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.ItemField

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.ItemField

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.ItemField

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.ItemField

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.ItemField

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.ItemField

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.ItemField

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.ItemField

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.ItemField

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.ItemField

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.ItemField

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.ItemField

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func NumberValue

func NumberValue(v int) predicate.ItemField

NumberValue applies equality check predicate on the "number_value" field. It's identical to NumberValueEQ.

func NumberValueEQ

func NumberValueEQ(v int) predicate.ItemField

NumberValueEQ applies the EQ predicate on the "number_value" field.

func NumberValueGT

func NumberValueGT(v int) predicate.ItemField

NumberValueGT applies the GT predicate on the "number_value" field.

func NumberValueGTE

func NumberValueGTE(v int) predicate.ItemField

NumberValueGTE applies the GTE predicate on the "number_value" field.

func NumberValueIn

func NumberValueIn(vs ...int) predicate.ItemField

NumberValueIn applies the In predicate on the "number_value" field.

func NumberValueIsNil

func NumberValueIsNil() predicate.ItemField

NumberValueIsNil applies the IsNil predicate on the "number_value" field.

func NumberValueLT

func NumberValueLT(v int) predicate.ItemField

NumberValueLT applies the LT predicate on the "number_value" field.

func NumberValueLTE

func NumberValueLTE(v int) predicate.ItemField

NumberValueLTE applies the LTE predicate on the "number_value" field.

func NumberValueNEQ

func NumberValueNEQ(v int) predicate.ItemField

NumberValueNEQ applies the NEQ predicate on the "number_value" field.

func NumberValueNotIn

func NumberValueNotIn(vs ...int) predicate.ItemField

NumberValueNotIn applies the NotIn predicate on the "number_value" field.

func NumberValueNotNil

func NumberValueNotNil() predicate.ItemField

NumberValueNotNil applies the NotNil predicate on the "number_value" field.

func Or

func Or(predicates ...predicate.ItemField) predicate.ItemField

Or groups predicates with the OR operator between them.

func TextValue

func TextValue(v string) predicate.ItemField

TextValue applies equality check predicate on the "text_value" field. It's identical to TextValueEQ.

func TextValueContains

func TextValueContains(v string) predicate.ItemField

TextValueContains applies the Contains predicate on the "text_value" field.

func TextValueContainsFold

func TextValueContainsFold(v string) predicate.ItemField

TextValueContainsFold applies the ContainsFold predicate on the "text_value" field.

func TextValueEQ

func TextValueEQ(v string) predicate.ItemField

TextValueEQ applies the EQ predicate on the "text_value" field.

func TextValueEqualFold

func TextValueEqualFold(v string) predicate.ItemField

TextValueEqualFold applies the EqualFold predicate on the "text_value" field.

func TextValueGT

func TextValueGT(v string) predicate.ItemField

TextValueGT applies the GT predicate on the "text_value" field.

func TextValueGTE

func TextValueGTE(v string) predicate.ItemField

TextValueGTE applies the GTE predicate on the "text_value" field.

func TextValueHasPrefix

func TextValueHasPrefix(v string) predicate.ItemField

TextValueHasPrefix applies the HasPrefix predicate on the "text_value" field.

func TextValueHasSuffix

func TextValueHasSuffix(v string) predicate.ItemField

TextValueHasSuffix applies the HasSuffix predicate on the "text_value" field.

func TextValueIn

func TextValueIn(vs ...string) predicate.ItemField

TextValueIn applies the In predicate on the "text_value" field.

func TextValueIsNil

func TextValueIsNil() predicate.ItemField

TextValueIsNil applies the IsNil predicate on the "text_value" field.

func TextValueLT

func TextValueLT(v string) predicate.ItemField

TextValueLT applies the LT predicate on the "text_value" field.

func TextValueLTE

func TextValueLTE(v string) predicate.ItemField

TextValueLTE applies the LTE predicate on the "text_value" field.

func TextValueNEQ

func TextValueNEQ(v string) predicate.ItemField

TextValueNEQ applies the NEQ predicate on the "text_value" field.

func TextValueNotIn

func TextValueNotIn(vs ...string) predicate.ItemField

TextValueNotIn applies the NotIn predicate on the "text_value" field.

func TextValueNotNil

func TextValueNotNil() predicate.ItemField

TextValueNotNil applies the NotNil predicate on the "text_value" field.

func TimeValue

func TimeValue(v time.Time) predicate.ItemField

TimeValue applies equality check predicate on the "time_value" field. It's identical to TimeValueEQ.

func TimeValueEQ

func TimeValueEQ(v time.Time) predicate.ItemField

TimeValueEQ applies the EQ predicate on the "time_value" field.

func TimeValueGT

func TimeValueGT(v time.Time) predicate.ItemField

TimeValueGT applies the GT predicate on the "time_value" field.

func TimeValueGTE

func TimeValueGTE(v time.Time) predicate.ItemField

TimeValueGTE applies the GTE predicate on the "time_value" field.

func TimeValueIn

func TimeValueIn(vs ...time.Time) predicate.ItemField

TimeValueIn applies the In predicate on the "time_value" field.

func TimeValueLT

func TimeValueLT(v time.Time) predicate.ItemField

TimeValueLT applies the LT predicate on the "time_value" field.

func TimeValueLTE

func TimeValueLTE(v time.Time) predicate.ItemField

TimeValueLTE applies the LTE predicate on the "time_value" field.

func TimeValueNEQ

func TimeValueNEQ(v time.Time) predicate.ItemField

TimeValueNEQ applies the NEQ predicate on the "time_value" field.

func TimeValueNotIn

func TimeValueNotIn(vs ...time.Time) predicate.ItemField

TimeValueNotIn applies the NotIn predicate on the "time_value" field.

func TypeEQ

func TypeEQ(v Type) predicate.ItemField

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.ItemField

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.ItemField

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.ItemField

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ItemField

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ItemField

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ItemField

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ItemField

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.ItemField

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ItemField

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ItemField

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ItemField

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.ItemField

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeText    Type = "text"
	TypeNumber  Type = "number"
	TypeBoolean Type = "boolean"
	TypeTime    Type = "time"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL