Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Event) predicate.Event
- func From(v string) predicate.Event
- func FromContains(v string) predicate.Event
- func FromContainsFold(v string) predicate.Event
- func FromEQ(v string) predicate.Event
- func FromEqualFold(v string) predicate.Event
- func FromGT(v string) predicate.Event
- func FromGTE(v string) predicate.Event
- func FromHasPrefix(v string) predicate.Event
- func FromHasSuffix(v string) predicate.Event
- func FromIn(vs ...string) predicate.Event
- func FromLT(v string) predicate.Event
- func FromLTE(v string) predicate.Event
- func FromNEQ(v string) predicate.Event
- func FromNotIn(vs ...string) predicate.Event
- func HasTransaction() predicate.Event
- func HasTransactionWith(preds ...predicate.Transaction) predicate.Event
- func ID(id string) predicate.Event
- func IDEQ(id string) predicate.Event
- func IDGT(id string) predicate.Event
- func IDGTE(id string) predicate.Event
- func IDIn(ids ...string) predicate.Event
- func IDLT(id string) predicate.Event
- func IDLTE(id string) predicate.Event
- func IDNEQ(id string) predicate.Event
- func IDNotIn(ids ...string) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func ValidColumn(column string) bool
Constants ¶
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.
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 FromContains ¶
FromContains applies the Contains predicate on the "from" field.
func FromContainsFold ¶
FromContainsFold applies the ContainsFold predicate on the "from" field.
func FromEqualFold ¶
FromEqualFold applies the EqualFold predicate on the "from" field.
func FromHasPrefix ¶
FromHasPrefix applies the HasPrefix predicate on the "from" field.
func FromHasSuffix ¶
FromHasSuffix applies the HasSuffix predicate on the "from" field.
func HasTransaction ¶
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.