spec

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the spec type in the database.
	Label = "spec"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"

	// EdgeCard holds the string denoting the card edge name in mutations.
	EdgeCard = "card"

	// Table holds the table name of the spec in the database.
	Table = "specs"
	// CardTable is the table the holds the card relation/edge. The primary key declared below.
	CardTable = "spec_card"
	// CardInverseTable is the table name for the Card entity.
	// It exists in this package in order to avoid circular dependency with the "card" package.
	CardInverseTable = "cards"
)

Variables

View Source
var (
	// CardPrimaryKey and CardColumn2 are the table columns denoting the
	// primary key for the card relation (M2M).
	CardPrimaryKey = []string{"spec_id", "card_id"}
)
View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for spec fields.

Functions

func And

func And(predicates ...predicate.Spec) predicate.Spec

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

func HasCard

func HasCard() predicate.Spec

HasCard applies the HasEdge predicate on the "card" edge.

func HasCardWith

func HasCardWith(preds ...predicate.Card) predicate.Spec

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

func ID

func ID(id int) predicate.Spec

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Spec

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Spec

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Spec

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Spec

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Spec

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Spec

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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