order

package
v0.0.0-...-cca628e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the order type in the database.
	Label = "order"
	// 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"
	// FieldCustomerID holds the string denoting the customer_id field in the database.
	FieldCustomerID = "customer_id"
	// FieldAddr holds the string denoting the addr field in the database.
	FieldAddr = "addr"
	// FieldPrice holds the string denoting the price field in the database.
	FieldPrice = "price"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// Table holds the table name of the order in the database.
	Table = "orders"
)

Variables

Columns holds all SQL columns for order fields.

Functions

func Addr

func Addr(v string) predicate.Order

Addr applies equality check predicate on the "addr" field. It's identical to AddrEQ.

func AddrContains

func AddrContains(v string) predicate.Order

AddrContains applies the Contains predicate on the "addr" field.

func AddrContainsFold

func AddrContainsFold(v string) predicate.Order

AddrContainsFold applies the ContainsFold predicate on the "addr" field.

func AddrEQ

func AddrEQ(v string) predicate.Order

AddrEQ applies the EQ predicate on the "addr" field.

func AddrEqualFold

func AddrEqualFold(v string) predicate.Order

AddrEqualFold applies the EqualFold predicate on the "addr" field.

func AddrGT

func AddrGT(v string) predicate.Order

AddrGT applies the GT predicate on the "addr" field.

func AddrGTE

func AddrGTE(v string) predicate.Order

AddrGTE applies the GTE predicate on the "addr" field.

func AddrHasPrefix

func AddrHasPrefix(v string) predicate.Order

AddrHasPrefix applies the HasPrefix predicate on the "addr" field.

func AddrHasSuffix

func AddrHasSuffix(v string) predicate.Order

AddrHasSuffix applies the HasSuffix predicate on the "addr" field.

func AddrIn

func AddrIn(vs ...string) predicate.Order

AddrIn applies the In predicate on the "addr" field.

func AddrLT

func AddrLT(v string) predicate.Order

AddrLT applies the LT predicate on the "addr" field.

func AddrLTE

func AddrLTE(v string) predicate.Order

AddrLTE applies the LTE predicate on the "addr" field.

func AddrNEQ

func AddrNEQ(v string) predicate.Order

AddrNEQ applies the NEQ predicate on the "addr" field.

func AddrNotIn

func AddrNotIn(vs ...string) predicate.Order

AddrNotIn applies the NotIn predicate on the "addr" field.

func And

func And(predicates ...predicate.Order) predicate.Order

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Order

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Order

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Order

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Order

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Order

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Order

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Order

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

func CreatedAtNotIn

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

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

func CustomerID

func CustomerID(v int) predicate.Order

CustomerID applies equality check predicate on the "customer_id" field. It's identical to CustomerIDEQ.

func CustomerIDEQ

func CustomerIDEQ(v int) predicate.Order

CustomerIDEQ applies the EQ predicate on the "customer_id" field.

func CustomerIDGT

func CustomerIDGT(v int) predicate.Order

CustomerIDGT applies the GT predicate on the "customer_id" field.

func CustomerIDGTE

func CustomerIDGTE(v int) predicate.Order

CustomerIDGTE applies the GTE predicate on the "customer_id" field.

func CustomerIDIn

func CustomerIDIn(vs ...int) predicate.Order

CustomerIDIn applies the In predicate on the "customer_id" field.

func CustomerIDLT

func CustomerIDLT(v int) predicate.Order

CustomerIDLT applies the LT predicate on the "customer_id" field.

func CustomerIDLTE

func CustomerIDLTE(v int) predicate.Order

CustomerIDLTE applies the LTE predicate on the "customer_id" field.

func CustomerIDNEQ

func CustomerIDNEQ(v int) predicate.Order

CustomerIDNEQ applies the NEQ predicate on the "customer_id" field.

func CustomerIDNotIn

func CustomerIDNotIn(vs ...int) predicate.Order

CustomerIDNotIn applies the NotIn predicate on the "customer_id" field.

func ID

func ID(id int) predicate.Order

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Order

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Order

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Order

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Order

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Order

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Order

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Order) predicate.Order

Or groups predicates with the OR operator between them.

func Price

func Price(v float64) predicate.Order

Price applies equality check predicate on the "price" field. It's identical to PriceEQ.

func PriceEQ

func PriceEQ(v float64) predicate.Order

PriceEQ applies the EQ predicate on the "price" field.

func PriceGT

func PriceGT(v float64) predicate.Order

PriceGT applies the GT predicate on the "price" field.

func PriceGTE

func PriceGTE(v float64) predicate.Order

PriceGTE applies the GTE predicate on the "price" field.

func PriceIn

func PriceIn(vs ...float64) predicate.Order

PriceIn applies the In predicate on the "price" field.

func PriceLT

func PriceLT(v float64) predicate.Order

PriceLT applies the LT predicate on the "price" field.

func PriceLTE

func PriceLTE(v float64) predicate.Order

PriceLTE applies the LTE predicate on the "price" field.

func PriceNEQ

func PriceNEQ(v float64) predicate.Order

PriceNEQ applies the NEQ predicate on the "price" field.

func PriceNotIn

func PriceNotIn(vs ...float64) predicate.Order

PriceNotIn applies the NotIn predicate on the "price" field.

func Status

func Status(v int32) predicate.Order

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v int32) predicate.Order

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v int32) predicate.Order

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v int32) predicate.Order

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...int32) predicate.Order

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v int32) predicate.Order

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v int32) predicate.Order

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v int32) predicate.Order

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...int32) predicate.Order

StatusNotIn applies the NotIn predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Order

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Order

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Order

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Order

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Order

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Order

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Order

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

func UpdatedAtNotIn

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

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

This section is empty.

Jump to

Keyboard shortcuts

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