action

package
v0.0.0-...-6edac6f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the action type in the database.
	Label = "action"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAction holds the string denoting the action field in the database.
	FieldAction = "action"
	// FieldCategory holds the string denoting the category field in the database.
	FieldCategory = "category"
	// FieldActionLabel holds the string denoting the action_label field in the database.
	FieldActionLabel = "label"
	// FieldProperty holds the string denoting the property field in the database.
	FieldProperty = "property"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"

	// EdgeEvent holds the string denoting the event edge name in mutations.
	EdgeEvent = "event"

	// Table holds the table name of the action in the database.
	Table = "actions"
	// EventTable is the table the holds the event relation/edge.
	EventTable = "actions"
	// EventInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventInverseTable = "events"
	// EventColumn is the table column denoting the event relation/edge.
	EventColumn = "event_action"
)

Variables

Columns holds all SQL columns for action fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Action type.

Functions

func Action

func Action(v string) predicate.Action

Action applies equality check predicate on the "action" field. It's identical to ActionEQ.

func ActionContains

func ActionContains(v string) predicate.Action

ActionContains applies the Contains predicate on the "action" field.

func ActionContainsFold

func ActionContainsFold(v string) predicate.Action

ActionContainsFold applies the ContainsFold predicate on the "action" field.

func ActionEQ

func ActionEQ(v string) predicate.Action

ActionEQ applies the EQ predicate on the "action" field.

func ActionEqualFold

func ActionEqualFold(v string) predicate.Action

ActionEqualFold applies the EqualFold predicate on the "action" field.

func ActionGT

func ActionGT(v string) predicate.Action

ActionGT applies the GT predicate on the "action" field.

func ActionGTE

func ActionGTE(v string) predicate.Action

ActionGTE applies the GTE predicate on the "action" field.

func ActionHasPrefix

func ActionHasPrefix(v string) predicate.Action

ActionHasPrefix applies the HasPrefix predicate on the "action" field.

func ActionHasSuffix

func ActionHasSuffix(v string) predicate.Action

ActionHasSuffix applies the HasSuffix predicate on the "action" field.

func ActionIn

func ActionIn(vs ...string) predicate.Action

ActionIn applies the In predicate on the "action" field.

func ActionLT

func ActionLT(v string) predicate.Action

ActionLT applies the LT predicate on the "action" field.

func ActionLTE

func ActionLTE(v string) predicate.Action

ActionLTE applies the LTE predicate on the "action" field.

func ActionLabel

func ActionLabel(v string) predicate.Action

ActionLabel applies equality check predicate on the "action_label" field. It's identical to ActionLabelEQ.

func ActionLabelContains

func ActionLabelContains(v string) predicate.Action

ActionLabelContains applies the Contains predicate on the "action_label" field.

func ActionLabelContainsFold

func ActionLabelContainsFold(v string) predicate.Action

ActionLabelContainsFold applies the ContainsFold predicate on the "action_label" field.

func ActionLabelEQ

func ActionLabelEQ(v string) predicate.Action

ActionLabelEQ applies the EQ predicate on the "action_label" field.

func ActionLabelEqualFold

func ActionLabelEqualFold(v string) predicate.Action

ActionLabelEqualFold applies the EqualFold predicate on the "action_label" field.

func ActionLabelGT

func ActionLabelGT(v string) predicate.Action

ActionLabelGT applies the GT predicate on the "action_label" field.

func ActionLabelGTE

func ActionLabelGTE(v string) predicate.Action

ActionLabelGTE applies the GTE predicate on the "action_label" field.

func ActionLabelHasPrefix

func ActionLabelHasPrefix(v string) predicate.Action

ActionLabelHasPrefix applies the HasPrefix predicate on the "action_label" field.

func ActionLabelHasSuffix

func ActionLabelHasSuffix(v string) predicate.Action

ActionLabelHasSuffix applies the HasSuffix predicate on the "action_label" field.

func ActionLabelIn

func ActionLabelIn(vs ...string) predicate.Action

ActionLabelIn applies the In predicate on the "action_label" field.

func ActionLabelIsNil

func ActionLabelIsNil() predicate.Action

ActionLabelIsNil applies the IsNil predicate on the "action_label" field.

func ActionLabelLT

func ActionLabelLT(v string) predicate.Action

ActionLabelLT applies the LT predicate on the "action_label" field.

func ActionLabelLTE

func ActionLabelLTE(v string) predicate.Action

ActionLabelLTE applies the LTE predicate on the "action_label" field.

func ActionLabelNEQ

func ActionLabelNEQ(v string) predicate.Action

ActionLabelNEQ applies the NEQ predicate on the "action_label" field.

func ActionLabelNotIn

func ActionLabelNotIn(vs ...string) predicate.Action

ActionLabelNotIn applies the NotIn predicate on the "action_label" field.

func ActionLabelNotNil

func ActionLabelNotNil() predicate.Action

ActionLabelNotNil applies the NotNil predicate on the "action_label" field.

func ActionNEQ

func ActionNEQ(v string) predicate.Action

ActionNEQ applies the NEQ predicate on the "action" field.

func ActionNotIn

func ActionNotIn(vs ...string) predicate.Action

ActionNotIn applies the NotIn predicate on the "action" field.

func And

func And(predicates ...predicate.Action) predicate.Action

And groups list of predicates with the AND operator between them.

func Category

func Category(v string) predicate.Action

Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.

func CategoryContains

func CategoryContains(v string) predicate.Action

CategoryContains applies the Contains predicate on the "category" field.

func CategoryContainsFold

func CategoryContainsFold(v string) predicate.Action

CategoryContainsFold applies the ContainsFold predicate on the "category" field.

func CategoryEQ

func CategoryEQ(v string) predicate.Action

CategoryEQ applies the EQ predicate on the "category" field.

func CategoryEqualFold

func CategoryEqualFold(v string) predicate.Action

CategoryEqualFold applies the EqualFold predicate on the "category" field.

func CategoryGT

func CategoryGT(v string) predicate.Action

CategoryGT applies the GT predicate on the "category" field.

func CategoryGTE

func CategoryGTE(v string) predicate.Action

CategoryGTE applies the GTE predicate on the "category" field.

func CategoryHasPrefix

func CategoryHasPrefix(v string) predicate.Action

CategoryHasPrefix applies the HasPrefix predicate on the "category" field.

func CategoryHasSuffix

func CategoryHasSuffix(v string) predicate.Action

CategoryHasSuffix applies the HasSuffix predicate on the "category" field.

func CategoryIn

func CategoryIn(vs ...string) predicate.Action

CategoryIn applies the In predicate on the "category" field.

func CategoryLT

func CategoryLT(v string) predicate.Action

CategoryLT applies the LT predicate on the "category" field.

func CategoryLTE

func CategoryLTE(v string) predicate.Action

CategoryLTE applies the LTE predicate on the "category" field.

func CategoryNEQ

func CategoryNEQ(v string) predicate.Action

CategoryNEQ applies the NEQ predicate on the "category" field.

func CategoryNotIn

func CategoryNotIn(vs ...string) predicate.Action

CategoryNotIn applies the NotIn predicate on the "category" field.

func HasEvent

func HasEvent() predicate.Action

HasEvent applies the HasEdge predicate on the "event" edge.

func HasEventWith

func HasEventWith(preds ...predicate.Event) predicate.Action

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

func ID

func ID(id int) predicate.Action

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Action

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Action

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Action

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Action

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Action

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Action

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Action

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Action

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.Action) predicate.Action

Or groups list of predicates with the OR operator between them.

func Property

func Property(v string) predicate.Action

Property applies equality check predicate on the "property" field. It's identical to PropertyEQ.

func PropertyContains

func PropertyContains(v string) predicate.Action

PropertyContains applies the Contains predicate on the "property" field.

func PropertyContainsFold

func PropertyContainsFold(v string) predicate.Action

PropertyContainsFold applies the ContainsFold predicate on the "property" field.

func PropertyEQ

func PropertyEQ(v string) predicate.Action

PropertyEQ applies the EQ predicate on the "property" field.

func PropertyEqualFold

func PropertyEqualFold(v string) predicate.Action

PropertyEqualFold applies the EqualFold predicate on the "property" field.

func PropertyGT

func PropertyGT(v string) predicate.Action

PropertyGT applies the GT predicate on the "property" field.

func PropertyGTE

func PropertyGTE(v string) predicate.Action

PropertyGTE applies the GTE predicate on the "property" field.

func PropertyHasPrefix

func PropertyHasPrefix(v string) predicate.Action

PropertyHasPrefix applies the HasPrefix predicate on the "property" field.

func PropertyHasSuffix

func PropertyHasSuffix(v string) predicate.Action

PropertyHasSuffix applies the HasSuffix predicate on the "property" field.

func PropertyIn

func PropertyIn(vs ...string) predicate.Action

PropertyIn applies the In predicate on the "property" field.

func PropertyIsNil

func PropertyIsNil() predicate.Action

PropertyIsNil applies the IsNil predicate on the "property" field.

func PropertyLT

func PropertyLT(v string) predicate.Action

PropertyLT applies the LT predicate on the "property" field.

func PropertyLTE

func PropertyLTE(v string) predicate.Action

PropertyLTE applies the LTE predicate on the "property" field.

func PropertyNEQ

func PropertyNEQ(v string) predicate.Action

PropertyNEQ applies the NEQ predicate on the "property" field.

func PropertyNotIn

func PropertyNotIn(vs ...string) predicate.Action

PropertyNotIn applies the NotIn predicate on the "property" field.

func PropertyNotNil

func PropertyNotNil() predicate.Action

PropertyNotNil applies the NotNil predicate on the "property" field.

func Value

func Value(v []byte) predicate.Action

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueEQ

func ValueEQ(v []byte) predicate.Action

ValueEQ applies the EQ predicate on the "value" field.

func ValueGT

func ValueGT(v []byte) predicate.Action

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v []byte) predicate.Action

ValueGTE applies the GTE predicate on the "value" field.

func ValueIn

func ValueIn(vs ...[]byte) predicate.Action

ValueIn applies the In predicate on the "value" field.

func ValueIsNil

func ValueIsNil() predicate.Action

ValueIsNil applies the IsNil predicate on the "value" field.

func ValueLT

func ValueLT(v []byte) predicate.Action

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v []byte) predicate.Action

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v []byte) predicate.Action

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...[]byte) predicate.Action

ValueNotIn applies the NotIn predicate on the "value" field.

func ValueNotNil

func ValueNotNil() predicate.Action

ValueNotNil applies the NotNil predicate on the "value" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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