event

package
v0.0.0-...-1971f33 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-3.0 Imports: 3 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"
	// FieldFrom holds the string denoting the from field in the database.
	FieldFrom = "from"
	// FieldKeys holds the string denoting the keys field in the database.
	FieldKeys = "keys"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// EdgeTransaction holds the string denoting the transaction edge name in mutations.
	EdgeTransaction = "transaction"
	// Table holds the table name of the event in the database.
	Table = "events"
	// TransactionTable is the table that holds the transaction relation/edge.
	TransactionTable = "events"
	// TransactionInverseTable is the table name for the Transaction entity.
	// It exists in this package in order to avoid circular dependency with the "transaction" package.
	TransactionInverseTable = "transactions"
	// TransactionColumn is the table column denoting the transaction relation/edge.
	TransactionColumn = "transaction_events"
)

Variables

Columns holds all SQL columns for event fields.

View Source
var ForeignKeys = []string{
	"transaction_events",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "events" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func From

func From(v string) predicate.Event

From applies equality check predicate on the "from" field. It's identical to FromEQ.

func FromContains

func FromContains(v string) predicate.Event

FromContains applies the Contains predicate on the "from" field.

func FromContainsFold

func FromContainsFold(v string) predicate.Event

FromContainsFold applies the ContainsFold predicate on the "from" field.

func FromEQ

func FromEQ(v string) predicate.Event

FromEQ applies the EQ predicate on the "from" field.

func FromEqualFold

func FromEqualFold(v string) predicate.Event

FromEqualFold applies the EqualFold predicate on the "from" field.

func FromGT

func FromGT(v string) predicate.Event

FromGT applies the GT predicate on the "from" field.

func FromGTE

func FromGTE(v string) predicate.Event

FromGTE applies the GTE predicate on the "from" field.

func FromHasPrefix

func FromHasPrefix(v string) predicate.Event

FromHasPrefix applies the HasPrefix predicate on the "from" field.

func FromHasSuffix

func FromHasSuffix(v string) predicate.Event

FromHasSuffix applies the HasSuffix predicate on the "from" field.

func FromIn

func FromIn(vs ...string) predicate.Event

FromIn applies the In predicate on the "from" field.

func FromLT

func FromLT(v string) predicate.Event

FromLT applies the LT predicate on the "from" field.

func FromLTE

func FromLTE(v string) predicate.Event

FromLTE applies the LTE predicate on the "from" field.

func FromNEQ

func FromNEQ(v string) predicate.Event

FromNEQ applies the NEQ predicate on the "from" field.

func FromNotIn

func FromNotIn(vs ...string) predicate.Event

FromNotIn applies the NotIn predicate on the "from" field.

func HasTransaction

func HasTransaction() predicate.Event

HasTransaction applies the HasEdge predicate on the "transaction" edge.

func HasTransactionWith

func HasTransactionWith(preds ...predicate.Transaction) predicate.Event

HasTransactionWith applies the HasEdge predicate on the "transaction" edge with a given conditions (other predicates).

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 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 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