xprovidercursor

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the xprovidercursor type in the database.
	Label = "xprovider_cursor"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldChainID holds the string denoting the chain_id field in the database.
	FieldChainID = "chain_id"
	// FieldHeight holds the string denoting the height field in the database.
	FieldHeight = "height"
	// FieldOffset holds the string denoting the offset field in the database.
	FieldOffset = "offset"
	// 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 xprovidercursor in the database.
	Table = "xprovider_cursors"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for xprovidercursor fields.

Functions

func And

And groups predicates with the AND operator between them.

func ChainID

func ChainID(v uint64) predicate.XProviderCursor

ChainID applies equality check predicate on the "chain_id" field. It's identical to ChainIDEQ.

func ChainIDEQ

func ChainIDEQ(v uint64) predicate.XProviderCursor

ChainIDEQ applies the EQ predicate on the "chain_id" field.

func ChainIDGT

func ChainIDGT(v uint64) predicate.XProviderCursor

ChainIDGT applies the GT predicate on the "chain_id" field.

func ChainIDGTE

func ChainIDGTE(v uint64) predicate.XProviderCursor

ChainIDGTE applies the GTE predicate on the "chain_id" field.

func ChainIDIn

func ChainIDIn(vs ...uint64) predicate.XProviderCursor

ChainIDIn applies the In predicate on the "chain_id" field.

func ChainIDLT

func ChainIDLT(v uint64) predicate.XProviderCursor

ChainIDLT applies the LT predicate on the "chain_id" field.

func ChainIDLTE

func ChainIDLTE(v uint64) predicate.XProviderCursor

ChainIDLTE applies the LTE predicate on the "chain_id" field.

func ChainIDNEQ

func ChainIDNEQ(v uint64) predicate.XProviderCursor

ChainIDNEQ applies the NEQ predicate on the "chain_id" field.

func ChainIDNotIn

func ChainIDNotIn(vs ...uint64) predicate.XProviderCursor

ChainIDNotIn applies the NotIn predicate on the "chain_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.XProviderCursor

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.XProviderCursor

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.XProviderCursor

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.XProviderCursor

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.XProviderCursor

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.XProviderCursor

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.XProviderCursor

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

func CreatedAtNotIn

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

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

func Height

Height applies equality check predicate on the "height" field. It's identical to HeightEQ.

func HeightEQ

func HeightEQ(v uint64) predicate.XProviderCursor

HeightEQ applies the EQ predicate on the "height" field.

func HeightGT

func HeightGT(v uint64) predicate.XProviderCursor

HeightGT applies the GT predicate on the "height" field.

func HeightGTE

func HeightGTE(v uint64) predicate.XProviderCursor

HeightGTE applies the GTE predicate on the "height" field.

func HeightIn

func HeightIn(vs ...uint64) predicate.XProviderCursor

HeightIn applies the In predicate on the "height" field.

func HeightLT

func HeightLT(v uint64) predicate.XProviderCursor

HeightLT applies the LT predicate on the "height" field.

func HeightLTE

func HeightLTE(v uint64) predicate.XProviderCursor

HeightLTE applies the LTE predicate on the "height" field.

func HeightNEQ

func HeightNEQ(v uint64) predicate.XProviderCursor

HeightNEQ applies the NEQ predicate on the "height" field.

func HeightNotIn

func HeightNotIn(vs ...uint64) predicate.XProviderCursor

HeightNotIn applies the NotIn predicate on the "height" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Offset added in v0.1.7

Offset applies equality check predicate on the "offset" field. It's identical to OffsetEQ.

func OffsetEQ added in v0.1.7

func OffsetEQ(v uint64) predicate.XProviderCursor

OffsetEQ applies the EQ predicate on the "offset" field.

func OffsetGT added in v0.1.7

func OffsetGT(v uint64) predicate.XProviderCursor

OffsetGT applies the GT predicate on the "offset" field.

func OffsetGTE added in v0.1.7

func OffsetGTE(v uint64) predicate.XProviderCursor

OffsetGTE applies the GTE predicate on the "offset" field.

func OffsetIn added in v0.1.7

func OffsetIn(vs ...uint64) predicate.XProviderCursor

OffsetIn applies the In predicate on the "offset" field.

func OffsetLT added in v0.1.7

func OffsetLT(v uint64) predicate.XProviderCursor

OffsetLT applies the LT predicate on the "offset" field.

func OffsetLTE added in v0.1.7

func OffsetLTE(v uint64) predicate.XProviderCursor

OffsetLTE applies the LTE predicate on the "offset" field.

func OffsetNEQ added in v0.1.7

func OffsetNEQ(v uint64) predicate.XProviderCursor

OffsetNEQ applies the NEQ predicate on the "offset" field.

func OffsetNotIn added in v0.1.7

func OffsetNotIn(vs ...uint64) predicate.XProviderCursor

OffsetNotIn applies the NotIn predicate on the "offset" field.

func Or

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.XProviderCursor

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.XProviderCursor

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.XProviderCursor

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.XProviderCursor

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.XProviderCursor

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.XProviderCursor

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.XProviderCursor

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

func UpdatedAtNotIn

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the XProviderCursor queries.

func ByChainID

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

ByChainID orders the results by the chain_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByHeight

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

ByHeight orders the results by the height field.

func ByID

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

ByID orders the results by the id field.

func ByOffset added in v0.1.7

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

ByOffset orders the results by the offset field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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