extra

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 extra type in the database.
	Label = "extra"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldValues holds the string denoting the values field in the database.
	FieldValues = "values"

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

	// Table holds the table name of the extra in the database.
	Table = "extras"
	// EventTable is the table the holds the event relation/edge.
	EventTable = "events"
	// 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_extra"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldValues,
}

Columns holds all SQL columns for extra fields.

Functions

func And

func And(predicates ...predicate.Extra) predicate.Extra

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

func HasEvent

func HasEvent() predicate.Extra

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

func HasEventWith

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

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

func ID

func ID(id int) predicate.Extra

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Extra

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Extra

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Extra

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Extra

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Extra

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Extra

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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