billproduct

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the billproduct type in the database.
	Label = "bill_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"
	// FieldSku holds the string denoting the sku field in the database.
	FieldSku = "sku"
	// FieldQuantity holds the string denoting the quantity field in the database.
	FieldQuantity = "quantity"
	// Table holds the table name of the billproduct in the database.
	Table = "bill_products"
)

Variables

Columns holds all SQL columns for billproduct fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() pulid.ID
)

Functions

func And

func And(predicates ...predicate.BillProduct) predicate.BillProduct

And groups predicates with the AND operator between them.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id pulid.ID) predicate.BillProduct

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id pulid.ID) predicate.BillProduct

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id pulid.ID) predicate.BillProduct

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...pulid.ID) predicate.BillProduct

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id pulid.ID) predicate.BillProduct

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id pulid.ID) predicate.BillProduct

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id pulid.ID) predicate.BillProduct

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...pulid.ID) predicate.BillProduct

IDNotIn applies the NotIn predicate on the ID field.

func Name

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

func NameContains

func NameContains(v string) predicate.BillProduct

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

func NameContainsFold

func NameContainsFold(v string) predicate.BillProduct

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

func NameEQ

func NameEQ(v string) predicate.BillProduct

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

func NameEqualFold

func NameEqualFold(v string) predicate.BillProduct

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

func NameGT

func NameGT(v string) predicate.BillProduct

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

func NameGTE

func NameGTE(v string) predicate.BillProduct

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.BillProduct

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.BillProduct

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.BillProduct

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

func NameLTE

func NameLTE(v string) predicate.BillProduct

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

func NameNEQ

func NameNEQ(v string) predicate.BillProduct

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func Quantity

func Quantity(v uint64) predicate.BillProduct

Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.

func QuantityEQ

func QuantityEQ(v uint64) predicate.BillProduct

QuantityEQ applies the EQ predicate on the "quantity" field.

func QuantityGT

func QuantityGT(v uint64) predicate.BillProduct

QuantityGT applies the GT predicate on the "quantity" field.

func QuantityGTE

func QuantityGTE(v uint64) predicate.BillProduct

QuantityGTE applies the GTE predicate on the "quantity" field.

func QuantityIn

func QuantityIn(vs ...uint64) predicate.BillProduct

QuantityIn applies the In predicate on the "quantity" field.

func QuantityLT

func QuantityLT(v uint64) predicate.BillProduct

QuantityLT applies the LT predicate on the "quantity" field.

func QuantityLTE

func QuantityLTE(v uint64) predicate.BillProduct

QuantityLTE applies the LTE predicate on the "quantity" field.

func QuantityNEQ

func QuantityNEQ(v uint64) predicate.BillProduct

QuantityNEQ applies the NEQ predicate on the "quantity" field.

func QuantityNotIn

func QuantityNotIn(vs ...uint64) predicate.BillProduct

QuantityNotIn applies the NotIn predicate on the "quantity" field.

func Sku

Sku applies equality check predicate on the "sku" field. It's identical to SkuEQ.

func SkuContains

func SkuContains(v string) predicate.BillProduct

SkuContains applies the Contains predicate on the "sku" field.

func SkuContainsFold

func SkuContainsFold(v string) predicate.BillProduct

SkuContainsFold applies the ContainsFold predicate on the "sku" field.

func SkuEQ

func SkuEQ(v string) predicate.BillProduct

SkuEQ applies the EQ predicate on the "sku" field.

func SkuEqualFold

func SkuEqualFold(v string) predicate.BillProduct

SkuEqualFold applies the EqualFold predicate on the "sku" field.

func SkuGT

func SkuGT(v string) predicate.BillProduct

SkuGT applies the GT predicate on the "sku" field.

func SkuGTE

func SkuGTE(v string) predicate.BillProduct

SkuGTE applies the GTE predicate on the "sku" field.

func SkuHasPrefix

func SkuHasPrefix(v string) predicate.BillProduct

SkuHasPrefix applies the HasPrefix predicate on the "sku" field.

func SkuHasSuffix

func SkuHasSuffix(v string) predicate.BillProduct

SkuHasSuffix applies the HasSuffix predicate on the "sku" field.

func SkuIn

func SkuIn(vs ...string) predicate.BillProduct

SkuIn applies the In predicate on the "sku" field.

func SkuLT

func SkuLT(v string) predicate.BillProduct

SkuLT applies the LT predicate on the "sku" field.

func SkuLTE

func SkuLTE(v string) predicate.BillProduct

SkuLTE applies the LTE predicate on the "sku" field.

func SkuNEQ

func SkuNEQ(v string) predicate.BillProduct

SkuNEQ applies the NEQ predicate on the "sku" field.

func SkuNotIn

func SkuNotIn(vs ...string) predicate.BillProduct

SkuNotIn applies the NotIn predicate on the "sku" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption added in v0.4.1

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the BillProduct queries.

func ByID added in v0.4.0

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName added in v0.4.0

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByQuantity added in v0.4.0

func ByQuantity(opts ...sql.OrderTermOption) OrderOption

ByQuantity orders the results by the quantity field.

func BySku added in v0.4.0

func BySku(opts ...sql.OrderTermOption) OrderOption

BySku orders the results by the sku field.

Jump to

Keyboard shortcuts

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