product

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the product type in the database.
	Label = "product"
	// 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"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldTypeName holds the string denoting the typename field in the database.
	FieldTypeName = "type_name"
	// FieldSubType holds the string denoting the subtype field in the database.
	FieldSubType = "sub_type"
	// FieldSubTypeName holds the string denoting the subtypename field in the database.
	FieldSubTypeName = "sub_type_name"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// Table holds the table name of the product in the database.
	Table = "products"
)

Variables

Columns holds all SQL columns for product fields.

Functions

func And

func And(predicates ...predicate.Product) predicate.Product

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Product

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Product

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Product

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Product

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Product

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Product

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Product

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Product

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Product

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Product

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

func NameContains

func NameContains(v string) predicate.Product

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

func NameContainsFold

func NameContainsFold(v string) predicate.Product

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

func NameEQ

func NameEQ(v string) predicate.Product

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

func NameEqualFold

func NameEqualFold(v string) predicate.Product

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

func NameGT

func NameGT(v string) predicate.Product

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

func NameGTE

func NameGTE(v string) predicate.Product

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Product

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Product

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Product

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

func NameLTE

func NameLTE(v string) predicate.Product

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

func NameNEQ

func NameNEQ(v string) predicate.Product

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

func NameNotIn

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

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.Product) predicate.Product

Or groups predicates with the OR operator between them.

func SubType

func SubType(v string) predicate.Product

SubType applies equality check predicate on the "subType" field. It's identical to SubTypeEQ.

func SubTypeContains

func SubTypeContains(v string) predicate.Product

SubTypeContains applies the Contains predicate on the "subType" field.

func SubTypeContainsFold

func SubTypeContainsFold(v string) predicate.Product

SubTypeContainsFold applies the ContainsFold predicate on the "subType" field.

func SubTypeEQ

func SubTypeEQ(v string) predicate.Product

SubTypeEQ applies the EQ predicate on the "subType" field.

func SubTypeEqualFold

func SubTypeEqualFold(v string) predicate.Product

SubTypeEqualFold applies the EqualFold predicate on the "subType" field.

func SubTypeGT

func SubTypeGT(v string) predicate.Product

SubTypeGT applies the GT predicate on the "subType" field.

func SubTypeGTE

func SubTypeGTE(v string) predicate.Product

SubTypeGTE applies the GTE predicate on the "subType" field.

func SubTypeHasPrefix

func SubTypeHasPrefix(v string) predicate.Product

SubTypeHasPrefix applies the HasPrefix predicate on the "subType" field.

func SubTypeHasSuffix

func SubTypeHasSuffix(v string) predicate.Product

SubTypeHasSuffix applies the HasSuffix predicate on the "subType" field.

func SubTypeIn

func SubTypeIn(vs ...string) predicate.Product

SubTypeIn applies the In predicate on the "subType" field.

func SubTypeLT

func SubTypeLT(v string) predicate.Product

SubTypeLT applies the LT predicate on the "subType" field.

func SubTypeLTE

func SubTypeLTE(v string) predicate.Product

SubTypeLTE applies the LTE predicate on the "subType" field.

func SubTypeNEQ

func SubTypeNEQ(v string) predicate.Product

SubTypeNEQ applies the NEQ predicate on the "subType" field.

func SubTypeName

func SubTypeName(v string) predicate.Product

SubTypeName applies equality check predicate on the "subTypeName" field. It's identical to SubTypeNameEQ.

func SubTypeNameContains

func SubTypeNameContains(v string) predicate.Product

SubTypeNameContains applies the Contains predicate on the "subTypeName" field.

func SubTypeNameContainsFold

func SubTypeNameContainsFold(v string) predicate.Product

SubTypeNameContainsFold applies the ContainsFold predicate on the "subTypeName" field.

func SubTypeNameEQ

func SubTypeNameEQ(v string) predicate.Product

SubTypeNameEQ applies the EQ predicate on the "subTypeName" field.

func SubTypeNameEqualFold

func SubTypeNameEqualFold(v string) predicate.Product

SubTypeNameEqualFold applies the EqualFold predicate on the "subTypeName" field.

func SubTypeNameGT

func SubTypeNameGT(v string) predicate.Product

SubTypeNameGT applies the GT predicate on the "subTypeName" field.

func SubTypeNameGTE

func SubTypeNameGTE(v string) predicate.Product

SubTypeNameGTE applies the GTE predicate on the "subTypeName" field.

func SubTypeNameHasPrefix

func SubTypeNameHasPrefix(v string) predicate.Product

SubTypeNameHasPrefix applies the HasPrefix predicate on the "subTypeName" field.

func SubTypeNameHasSuffix

func SubTypeNameHasSuffix(v string) predicate.Product

SubTypeNameHasSuffix applies the HasSuffix predicate on the "subTypeName" field.

func SubTypeNameIn

func SubTypeNameIn(vs ...string) predicate.Product

SubTypeNameIn applies the In predicate on the "subTypeName" field.

func SubTypeNameLT

func SubTypeNameLT(v string) predicate.Product

SubTypeNameLT applies the LT predicate on the "subTypeName" field.

func SubTypeNameLTE

func SubTypeNameLTE(v string) predicate.Product

SubTypeNameLTE applies the LTE predicate on the "subTypeName" field.

func SubTypeNameNEQ

func SubTypeNameNEQ(v string) predicate.Product

SubTypeNameNEQ applies the NEQ predicate on the "subTypeName" field.

func SubTypeNameNotIn

func SubTypeNameNotIn(vs ...string) predicate.Product

SubTypeNameNotIn applies the NotIn predicate on the "subTypeName" field.

func SubTypeNotIn

func SubTypeNotIn(vs ...string) predicate.Product

SubTypeNotIn applies the NotIn predicate on the "subType" field.

func TypeEQ

func TypeEQ(v Type) predicate.Product

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

func TypeIn

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

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

func TypeNEQ

func TypeNEQ(v Type) predicate.Product

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

func TypeName

func TypeName(v string) predicate.Product

TypeName applies equality check predicate on the "typeName" field. It's identical to TypeNameEQ.

func TypeNameContains

func TypeNameContains(v string) predicate.Product

TypeNameContains applies the Contains predicate on the "typeName" field.

func TypeNameContainsFold

func TypeNameContainsFold(v string) predicate.Product

TypeNameContainsFold applies the ContainsFold predicate on the "typeName" field.

func TypeNameEQ

func TypeNameEQ(v string) predicate.Product

TypeNameEQ applies the EQ predicate on the "typeName" field.

func TypeNameEqualFold

func TypeNameEqualFold(v string) predicate.Product

TypeNameEqualFold applies the EqualFold predicate on the "typeName" field.

func TypeNameGT

func TypeNameGT(v string) predicate.Product

TypeNameGT applies the GT predicate on the "typeName" field.

func TypeNameGTE

func TypeNameGTE(v string) predicate.Product

TypeNameGTE applies the GTE predicate on the "typeName" field.

func TypeNameHasPrefix

func TypeNameHasPrefix(v string) predicate.Product

TypeNameHasPrefix applies the HasPrefix predicate on the "typeName" field.

func TypeNameHasSuffix

func TypeNameHasSuffix(v string) predicate.Product

TypeNameHasSuffix applies the HasSuffix predicate on the "typeName" field.

func TypeNameIn

func TypeNameIn(vs ...string) predicate.Product

TypeNameIn applies the In predicate on the "typeName" field.

func TypeNameLT

func TypeNameLT(v string) predicate.Product

TypeNameLT applies the LT predicate on the "typeName" field.

func TypeNameLTE

func TypeNameLTE(v string) predicate.Product

TypeNameLTE applies the LTE predicate on the "typeName" field.

func TypeNameNEQ

func TypeNameNEQ(v string) predicate.Product

TypeNameNEQ applies the NEQ predicate on the "typeName" field.

func TypeNameNotIn

func TypeNameNotIn(vs ...string) predicate.Product

TypeNameNotIn applies the NotIn predicate on the "typeName" field.

func TypeNotIn

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

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 URL

func URL(v string) predicate.Product

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Product

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Product

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Product

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Product

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Product

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Product

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Product

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Product

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Product

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Product

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Product

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Product

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Product

URLNotIn applies the NotIn predicate on the "url" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Type

type Type string

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

const (
	TypeSAVING     Type = "SAVING"
	TypeLOAN       Type = "LOAN"
	TypeDEPOSIT    Type = "DEPOSIT"
	TypeCHECKING   Type = "CHECKING"
	TypeINVESTMENT Type = "INVESTMENT"
)

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