warehouse

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the warehouse type in the database.
	Label = "warehouse"
	// 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"
	// FieldLastUpdate holds the string denoting the last_update field in the database.
	FieldLastUpdate = "last_update"
	// FieldOriginalData holds the string denoting the original_data field in the database.
	FieldOriginalData = "original_data"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldFilters holds the string denoting the filters field in the database.
	FieldFilters = "filters"
	// EdgeProducts holds the string denoting the products edge name in mutations.
	EdgeProducts = "products"
	// EdgeVendor holds the string denoting the vendor edge name in mutations.
	EdgeVendor = "vendor"
	// Table holds the table name of the warehouse in the database.
	Table = "warehouses"
	// ProductsTable is the table that holds the products relation/edge.
	ProductsTable = "products"
	// ProductsInverseTable is the table name for the Product entity.
	// It exists in this package in order to avoid circular dependency with the "product" package.
	ProductsInverseTable = "products"
	// ProductsColumn is the table column denoting the products relation/edge.
	ProductsColumn = "warehouse_products"
	// VendorTable is the table that holds the vendor relation/edge.
	VendorTable = "warehouses"
	// VendorInverseTable is the table name for the Vendor entity.
	// It exists in this package in order to avoid circular dependency with the "vendor" package.
	VendorInverseTable = "vendors"
	// VendorColumn is the table column denoting the vendor relation/edge.
	VendorColumn = "vendor_warehouses"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for warehouse fields.

View Source
var ForeignKeys = []string{
	"vendor_warehouses",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "warehouses" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Warehouse) predicate.Warehouse

And groups predicates with the AND operator between them.

func Enabled

func Enabled(v bool) predicate.Warehouse

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

func EnabledEQ(v bool) predicate.Warehouse

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

func EnabledNEQ(v bool) predicate.Warehouse

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func FiltersIsNil

func FiltersIsNil() predicate.Warehouse

FiltersIsNil applies the IsNil predicate on the "filters" field.

func FiltersNotNil

func FiltersNotNil() predicate.Warehouse

FiltersNotNil applies the NotNil predicate on the "filters" field.

func HasProducts

func HasProducts() predicate.Warehouse

HasProducts applies the HasEdge predicate on the "products" edge.

func HasProductsWith

func HasProductsWith(preds ...predicate.Product) predicate.Warehouse

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

func HasVendor

func HasVendor() predicate.Warehouse

HasVendor applies the HasEdge predicate on the "vendor" edge.

func HasVendorWith

func HasVendorWith(preds ...predicate.Vendor) predicate.Warehouse

HasVendorWith applies the HasEdge predicate on the "vendor" 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.Warehouse

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Warehouse

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Warehouse

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Warehouse

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Warehouse

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Warehouse

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastUpdate

func LastUpdate(v time.Time) predicate.Warehouse

LastUpdate applies equality check predicate on the "last_update" field. It's identical to LastUpdateEQ.

func LastUpdateEQ

func LastUpdateEQ(v time.Time) predicate.Warehouse

LastUpdateEQ applies the EQ predicate on the "last_update" field.

func LastUpdateGT

func LastUpdateGT(v time.Time) predicate.Warehouse

LastUpdateGT applies the GT predicate on the "last_update" field.

func LastUpdateGTE

func LastUpdateGTE(v time.Time) predicate.Warehouse

LastUpdateGTE applies the GTE predicate on the "last_update" field.

func LastUpdateIn

func LastUpdateIn(vs ...time.Time) predicate.Warehouse

LastUpdateIn applies the In predicate on the "last_update" field.

func LastUpdateIsNil

func LastUpdateIsNil() predicate.Warehouse

LastUpdateIsNil applies the IsNil predicate on the "last_update" field.

func LastUpdateLT

func LastUpdateLT(v time.Time) predicate.Warehouse

LastUpdateLT applies the LT predicate on the "last_update" field.

func LastUpdateLTE

func LastUpdateLTE(v time.Time) predicate.Warehouse

LastUpdateLTE applies the LTE predicate on the "last_update" field.

func LastUpdateNEQ

func LastUpdateNEQ(v time.Time) predicate.Warehouse

LastUpdateNEQ applies the NEQ predicate on the "last_update" field.

func LastUpdateNotIn

func LastUpdateNotIn(vs ...time.Time) predicate.Warehouse

LastUpdateNotIn applies the NotIn predicate on the "last_update" field.

func LastUpdateNotNil

func LastUpdateNotNil() predicate.Warehouse

LastUpdateNotNil applies the NotNil predicate on the "last_update" field.

func Name

func Name(v string) predicate.Warehouse

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

func NameContains

func NameContains(v string) predicate.Warehouse

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

func NameContainsFold

func NameContainsFold(v string) predicate.Warehouse

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

func NameEQ

func NameEQ(v string) predicate.Warehouse

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

func NameEqualFold

func NameEqualFold(v string) predicate.Warehouse

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

func NameGT

func NameGT(v string) predicate.Warehouse

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

func NameGTE

func NameGTE(v string) predicate.Warehouse

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Warehouse

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Warehouse

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Warehouse

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

func NameLTE

func NameLTE(v string) predicate.Warehouse

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

func NameNEQ

func NameNEQ(v string) predicate.Warehouse

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Warehouse) predicate.Warehouse

Or groups predicates with the OR operator between them.

func OriginalData

func OriginalData(v string) predicate.Warehouse

OriginalData applies equality check predicate on the "original_data" field. It's identical to OriginalDataEQ.

func OriginalDataContains

func OriginalDataContains(v string) predicate.Warehouse

OriginalDataContains applies the Contains predicate on the "original_data" field.

func OriginalDataContainsFold

func OriginalDataContainsFold(v string) predicate.Warehouse

OriginalDataContainsFold applies the ContainsFold predicate on the "original_data" field.

func OriginalDataEQ

func OriginalDataEQ(v string) predicate.Warehouse

OriginalDataEQ applies the EQ predicate on the "original_data" field.

func OriginalDataEqualFold

func OriginalDataEqualFold(v string) predicate.Warehouse

OriginalDataEqualFold applies the EqualFold predicate on the "original_data" field.

func OriginalDataGT

func OriginalDataGT(v string) predicate.Warehouse

OriginalDataGT applies the GT predicate on the "original_data" field.

func OriginalDataGTE

func OriginalDataGTE(v string) predicate.Warehouse

OriginalDataGTE applies the GTE predicate on the "original_data" field.

func OriginalDataHasPrefix

func OriginalDataHasPrefix(v string) predicate.Warehouse

OriginalDataHasPrefix applies the HasPrefix predicate on the "original_data" field.

func OriginalDataHasSuffix

func OriginalDataHasSuffix(v string) predicate.Warehouse

OriginalDataHasSuffix applies the HasSuffix predicate on the "original_data" field.

func OriginalDataIn

func OriginalDataIn(vs ...string) predicate.Warehouse

OriginalDataIn applies the In predicate on the "original_data" field.

func OriginalDataIsNil

func OriginalDataIsNil() predicate.Warehouse

OriginalDataIsNil applies the IsNil predicate on the "original_data" field.

func OriginalDataLT

func OriginalDataLT(v string) predicate.Warehouse

OriginalDataLT applies the LT predicate on the "original_data" field.

func OriginalDataLTE

func OriginalDataLTE(v string) predicate.Warehouse

OriginalDataLTE applies the LTE predicate on the "original_data" field.

func OriginalDataNEQ

func OriginalDataNEQ(v string) predicate.Warehouse

OriginalDataNEQ applies the NEQ predicate on the "original_data" field.

func OriginalDataNotIn

func OriginalDataNotIn(vs ...string) predicate.Warehouse

OriginalDataNotIn applies the NotIn predicate on the "original_data" field.

func OriginalDataNotNil

func OriginalDataNotNil() predicate.Warehouse

OriginalDataNotNil applies the NotNil predicate on the "original_data" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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