eventstreamcursor

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the eventstreamcursor type in the database.
	Label = "event_stream_cursor"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldLastSyncedAt holds the string denoting the last_synced_at field in the database.
	FieldLastSyncedAt = "last_synced_at"
	// FieldLastID holds the string denoting the last_id field in the database.
	FieldLastID = "last_id"
	// Table holds the table name of the eventstreamcursor in the database.
	Table = "event_stream_cursors"
)

Variables

Columns holds all SQL columns for eventstreamcursor fields.

View Source
var (
	// DefaultLastSyncedAt holds the default value on creation for the "last_synced_at" field.
	DefaultLastSyncedAt func() time.Time
)

Functions

func And

And groups predicates with the AND operator between them.

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.EventStreamCursor

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.EventStreamCursor

IDEqualFold applies the EqualFold 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 ...string) predicate.EventStreamCursor

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 ...string) predicate.EventStreamCursor

IDNotIn applies the NotIn predicate on the ID field.

func LastID

LastID applies equality check predicate on the "last_id" field. It's identical to LastIDEQ.

func LastIDContains

func LastIDContains(v string) predicate.EventStreamCursor

LastIDContains applies the Contains predicate on the "last_id" field.

func LastIDContainsFold

func LastIDContainsFold(v string) predicate.EventStreamCursor

LastIDContainsFold applies the ContainsFold predicate on the "last_id" field.

func LastIDEQ

LastIDEQ applies the EQ predicate on the "last_id" field.

func LastIDEqualFold

func LastIDEqualFold(v string) predicate.EventStreamCursor

LastIDEqualFold applies the EqualFold predicate on the "last_id" field.

func LastIDGT

LastIDGT applies the GT predicate on the "last_id" field.

func LastIDGTE

func LastIDGTE(v string) predicate.EventStreamCursor

LastIDGTE applies the GTE predicate on the "last_id" field.

func LastIDHasPrefix

func LastIDHasPrefix(v string) predicate.EventStreamCursor

LastIDHasPrefix applies the HasPrefix predicate on the "last_id" field.

func LastIDHasSuffix

func LastIDHasSuffix(v string) predicate.EventStreamCursor

LastIDHasSuffix applies the HasSuffix predicate on the "last_id" field.

func LastIDIn

func LastIDIn(vs ...string) predicate.EventStreamCursor

LastIDIn applies the In predicate on the "last_id" field.

func LastIDIsNil

func LastIDIsNil() predicate.EventStreamCursor

LastIDIsNil applies the IsNil predicate on the "last_id" field.

func LastIDLT

LastIDLT applies the LT predicate on the "last_id" field.

func LastIDLTE

func LastIDLTE(v string) predicate.EventStreamCursor

LastIDLTE applies the LTE predicate on the "last_id" field.

func LastIDNEQ

func LastIDNEQ(v string) predicate.EventStreamCursor

LastIDNEQ applies the NEQ predicate on the "last_id" field.

func LastIDNotIn

func LastIDNotIn(vs ...string) predicate.EventStreamCursor

LastIDNotIn applies the NotIn predicate on the "last_id" field.

func LastIDNotNil

func LastIDNotNil() predicate.EventStreamCursor

LastIDNotNil applies the NotNil predicate on the "last_id" field.

func LastSyncedAt

func LastSyncedAt(v time.Time) predicate.EventStreamCursor

LastSyncedAt applies equality check predicate on the "last_synced_at" field. It's identical to LastSyncedAtEQ.

func LastSyncedAtEQ

func LastSyncedAtEQ(v time.Time) predicate.EventStreamCursor

LastSyncedAtEQ applies the EQ predicate on the "last_synced_at" field.

func LastSyncedAtGT

func LastSyncedAtGT(v time.Time) predicate.EventStreamCursor

LastSyncedAtGT applies the GT predicate on the "last_synced_at" field.

func LastSyncedAtGTE

func LastSyncedAtGTE(v time.Time) predicate.EventStreamCursor

LastSyncedAtGTE applies the GTE predicate on the "last_synced_at" field.

func LastSyncedAtIn

func LastSyncedAtIn(vs ...time.Time) predicate.EventStreamCursor

LastSyncedAtIn applies the In predicate on the "last_synced_at" field.

func LastSyncedAtLT

func LastSyncedAtLT(v time.Time) predicate.EventStreamCursor

LastSyncedAtLT applies the LT predicate on the "last_synced_at" field.

func LastSyncedAtLTE

func LastSyncedAtLTE(v time.Time) predicate.EventStreamCursor

LastSyncedAtLTE applies the LTE predicate on the "last_synced_at" field.

func LastSyncedAtNEQ

func LastSyncedAtNEQ(v time.Time) predicate.EventStreamCursor

LastSyncedAtNEQ applies the NEQ predicate on the "last_synced_at" field.

func LastSyncedAtNotIn

func LastSyncedAtNotIn(vs ...time.Time) predicate.EventStreamCursor

LastSyncedAtNotIn applies the NotIn predicate on the "last_synced_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

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 EventStreamCursor queries.

func ByID

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

ByID orders the results by the id field.

func ByLastID

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

ByLastID orders the results by the last_id field.

func ByLastSyncedAt

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

ByLastSyncedAt orders the results by the last_synced_at field.

Jump to

Keyboard shortcuts

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