order

package
v0.0.0-...-acbaf2f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT, 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"
	// FieldSn holds the string denoting the sn field in the database.
	FieldSn = "sn"
	// FieldGid holds the string denoting the gid field in the database.
	FieldGid = "gid"
	// FieldUID holds the string denoting the uid field in the database.
	FieldUID = "uid"
	// 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"
	// Table holds the table name of the order in the database.
	Table = "orders"
)

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
)

Columns holds all SQL columns for order fields.

Functions

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 Gid

func Gid(v int64) predicate.Order

Gid applies equality check predicate on the "gid" field. It's identical to GidEQ.

func GidEQ

func GidEQ(v int64) predicate.Order

GidEQ applies the EQ predicate on the "gid" field.

func GidGT

func GidGT(v int64) predicate.Order

GidGT applies the GT predicate on the "gid" field.

func GidGTE

func GidGTE(v int64) predicate.Order

GidGTE applies the GTE predicate on the "gid" field.

func GidIn

func GidIn(vs ...int64) predicate.Order

GidIn applies the In predicate on the "gid" field.

func GidLT

func GidLT(v int64) predicate.Order

GidLT applies the LT predicate on the "gid" field.

func GidLTE

func GidLTE(v int64) predicate.Order

GidLTE applies the LTE predicate on the "gid" field.

func GidNEQ

func GidNEQ(v int64) predicate.Order

GidNEQ applies the NEQ predicate on the "gid" field.

func GidNotIn

func GidNotIn(vs ...int64) predicate.Order

GidNotIn applies the NotIn predicate on the "gid" field.

func ID

func ID(id int64) predicate.Order

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Order

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Order

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Order

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Order

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Order

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Order

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) 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 Sn

func Sn(v string) predicate.Order

Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.

func SnContains

func SnContains(v string) predicate.Order

SnContains applies the Contains predicate on the "sn" field.

func SnContainsFold

func SnContainsFold(v string) predicate.Order

SnContainsFold applies the ContainsFold predicate on the "sn" field.

func SnEQ

func SnEQ(v string) predicate.Order

SnEQ applies the EQ predicate on the "sn" field.

func SnEqualFold

func SnEqualFold(v string) predicate.Order

SnEqualFold applies the EqualFold predicate on the "sn" field.

func SnGT

func SnGT(v string) predicate.Order

SnGT applies the GT predicate on the "sn" field.

func SnGTE

func SnGTE(v string) predicate.Order

SnGTE applies the GTE predicate on the "sn" field.

func SnHasPrefix

func SnHasPrefix(v string) predicate.Order

SnHasPrefix applies the HasPrefix predicate on the "sn" field.

func SnHasSuffix

func SnHasSuffix(v string) predicate.Order

SnHasSuffix applies the HasSuffix predicate on the "sn" field.

func SnIn

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

SnIn applies the In predicate on the "sn" field.

func SnLT

func SnLT(v string) predicate.Order

SnLT applies the LT predicate on the "sn" field.

func SnLTE

func SnLTE(v string) predicate.Order

SnLTE applies the LTE predicate on the "sn" field.

func SnNEQ

func SnNEQ(v string) predicate.Order

SnNEQ applies the NEQ predicate on the "sn" field.

func SnNotIn

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

SnNotIn applies the NotIn predicate on the "sn" field.

func UID

func UID(v int64) predicate.Order

UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.

func UIDEQ

func UIDEQ(v int64) predicate.Order

UIDEQ applies the EQ predicate on the "uid" field.

func UIDGT

func UIDGT(v int64) predicate.Order

UIDGT applies the GT predicate on the "uid" field.

func UIDGTE

func UIDGTE(v int64) predicate.Order

UIDGTE applies the GTE predicate on the "uid" field.

func UIDIn

func UIDIn(vs ...int64) predicate.Order

UIDIn applies the In predicate on the "uid" field.

func UIDLT

func UIDLT(v int64) predicate.Order

UIDLT applies the LT predicate on the "uid" field.

func UIDLTE

func UIDLTE(v int64) predicate.Order

UIDLTE applies the LTE predicate on the "uid" field.

func UIDNEQ

func UIDNEQ(v int64) predicate.Order

UIDNEQ applies the NEQ predicate on the "uid" field.

func UIDNotIn

func UIDNotIn(vs ...int64) predicate.Order

UIDNotIn applies the NotIn predicate on the "uid" 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