event

package
v0.0.0-...-3befcbb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the event type in the database.
	Label = "event"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldIndex holds the string denoting the index field in the database.
	FieldIndex = "index"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// 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 event in the database.
	Table = "events"
)

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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for event fields.

Functions

func Address

func Address(v common.Address) predicate.Event

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressEQ

func AddressEQ(v common.Address) predicate.Event

AddressEQ applies the EQ predicate on the "address" field.

func AddressGT

func AddressGT(v common.Address) predicate.Event

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v common.Address) predicate.Event

AddressGTE applies the GTE predicate on the "address" field.

func AddressIn

func AddressIn(vs ...common.Address) predicate.Event

AddressIn applies the In predicate on the "address" field.

func AddressLT

func AddressLT(v common.Address) predicate.Event

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v common.Address) predicate.Event

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v common.Address) predicate.Event

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...common.Address) predicate.Event

AddressNotIn applies the NotIn predicate on the "address" field.

func And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Event

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Event

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Event

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Event

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Event

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Event

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Event

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

func CreatedAtNotIn

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

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

func Hash

func Hash(v common.Hash) predicate.Event

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashEQ

func HashEQ(v common.Hash) predicate.Event

HashEQ applies the EQ predicate on the "hash" field.

func HashGT

func HashGT(v common.Hash) predicate.Event

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v common.Hash) predicate.Event

HashGTE applies the GTE predicate on the "hash" field.

func HashIn

func HashIn(vs ...common.Hash) predicate.Event

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v common.Hash) predicate.Event

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v common.Hash) predicate.Event

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v common.Hash) predicate.Event

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...common.Hash) predicate.Event

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id string) predicate.Event

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Event

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Event

IDNotIn applies the NotIn predicate on the ID field.

func Index

func Index(v uint64) predicate.Event

Index applies equality check predicate on the "index" field. It's identical to IndexEQ.

func IndexEQ

func IndexEQ(v uint64) predicate.Event

IndexEQ applies the EQ predicate on the "index" field.

func IndexGT

func IndexGT(v uint64) predicate.Event

IndexGT applies the GT predicate on the "index" field.

func IndexGTE

func IndexGTE(v uint64) predicate.Event

IndexGTE applies the GTE predicate on the "index" field.

func IndexIn

func IndexIn(vs ...uint64) predicate.Event

IndexIn applies the In predicate on the "index" field.

func IndexLT

func IndexLT(v uint64) predicate.Event

IndexLT applies the LT predicate on the "index" field.

func IndexLTE

func IndexLTE(v uint64) predicate.Event

IndexLTE applies the LTE predicate on the "index" field.

func IndexNEQ

func IndexNEQ(v uint64) predicate.Event

IndexNEQ applies the NEQ predicate on the "index" field.

func IndexNotIn

func IndexNotIn(vs ...uint64) predicate.Event

IndexNotIn applies the NotIn predicate on the "index" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Event) predicate.Event

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Event

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Event

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Event

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Event

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Event

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Event

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Event

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

func UpdatedAtNotIn

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

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