cabinet

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the cabinet type in the database.
	Label = "cabinet"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "cabinet_id"
	// FieldCount holds the string denoting the count field in the database.
	FieldCount = "count"
	// FieldLocationID holds the string denoting the location_id field in the database.
	FieldLocationID = "location_id"
	// FieldGameID holds the string denoting the game_id field in the database.
	FieldGameID = "game_id"
	// EdgeLocation holds the string denoting the location edge name in mutations.
	EdgeLocation = "location"
	// EdgeGame holds the string denoting the game edge name in mutations.
	EdgeGame = "game"
	// LocationFieldID holds the string denoting the ID field of the Location.
	LocationFieldID = "location_id"
	// GameFieldID holds the string denoting the ID field of the Game.
	GameFieldID = "game_id"
	// Table holds the table name of the cabinet in the database.
	Table = "cabinets"
	// LocationTable is the table that holds the location relation/edge.
	LocationTable = "cabinets"
	// LocationInverseTable is the table name for the Location entity.
	// It exists in this package in order to avoid circular dependency with the "location" package.
	LocationInverseTable = "locations"
	// LocationColumn is the table column denoting the location relation/edge.
	LocationColumn = "location_id"
	// GameTable is the table that holds the game relation/edge.
	GameTable = "cabinets"
	// GameInverseTable is the table name for the Game entity.
	// It exists in this package in order to avoid circular dependency with the "game" package.
	GameInverseTable = "games"
	// GameColumn is the table column denoting the game relation/edge.
	GameColumn = "game_id"
)

Variables

Columns holds all SQL columns for cabinet fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Functions

func And

func And(predicates ...predicate.Cabinet) predicate.Cabinet

And groups predicates with the AND operator between them.

func Count

func Count(v int) predicate.Cabinet

Count applies equality check predicate on the "count" field. It's identical to CountEQ.

func CountEQ

func CountEQ(v int) predicate.Cabinet

CountEQ applies the EQ predicate on the "count" field.

func CountGT

func CountGT(v int) predicate.Cabinet

CountGT applies the GT predicate on the "count" field.

func CountGTE

func CountGTE(v int) predicate.Cabinet

CountGTE applies the GTE predicate on the "count" field.

func CountIn

func CountIn(vs ...int) predicate.Cabinet

CountIn applies the In predicate on the "count" field.

func CountIsNil

func CountIsNil() predicate.Cabinet

CountIsNil applies the IsNil predicate on the "count" field.

func CountLT

func CountLT(v int) predicate.Cabinet

CountLT applies the LT predicate on the "count" field.

func CountLTE

func CountLTE(v int) predicate.Cabinet

CountLTE applies the LTE predicate on the "count" field.

func CountNEQ

func CountNEQ(v int) predicate.Cabinet

CountNEQ applies the NEQ predicate on the "count" field.

func CountNotIn

func CountNotIn(vs ...int) predicate.Cabinet

CountNotIn applies the NotIn predicate on the "count" field.

func CountNotNil

func CountNotNil() predicate.Cabinet

CountNotNil applies the NotNil predicate on the "count" field.

func GameID

func GameID(v string) predicate.Cabinet

GameID applies equality check predicate on the "game_id" field. It's identical to GameIDEQ.

func GameIDContains

func GameIDContains(v string) predicate.Cabinet

GameIDContains applies the Contains predicate on the "game_id" field.

func GameIDContainsFold

func GameIDContainsFold(v string) predicate.Cabinet

GameIDContainsFold applies the ContainsFold predicate on the "game_id" field.

func GameIDEQ

func GameIDEQ(v string) predicate.Cabinet

GameIDEQ applies the EQ predicate on the "game_id" field.

func GameIDEqualFold

func GameIDEqualFold(v string) predicate.Cabinet

GameIDEqualFold applies the EqualFold predicate on the "game_id" field.

func GameIDGT

func GameIDGT(v string) predicate.Cabinet

GameIDGT applies the GT predicate on the "game_id" field.

func GameIDGTE

func GameIDGTE(v string) predicate.Cabinet

GameIDGTE applies the GTE predicate on the "game_id" field.

func GameIDHasPrefix

func GameIDHasPrefix(v string) predicate.Cabinet

GameIDHasPrefix applies the HasPrefix predicate on the "game_id" field.

func GameIDHasSuffix

func GameIDHasSuffix(v string) predicate.Cabinet

GameIDHasSuffix applies the HasSuffix predicate on the "game_id" field.

func GameIDIn

func GameIDIn(vs ...string) predicate.Cabinet

GameIDIn applies the In predicate on the "game_id" field.

func GameIDLT

func GameIDLT(v string) predicate.Cabinet

GameIDLT applies the LT predicate on the "game_id" field.

func GameIDLTE

func GameIDLTE(v string) predicate.Cabinet

GameIDLTE applies the LTE predicate on the "game_id" field.

func GameIDNEQ

func GameIDNEQ(v string) predicate.Cabinet

GameIDNEQ applies the NEQ predicate on the "game_id" field.

func GameIDNotIn

func GameIDNotIn(vs ...string) predicate.Cabinet

GameIDNotIn applies the NotIn predicate on the "game_id" field.

func HasGame

func HasGame() predicate.Cabinet

HasGame applies the HasEdge predicate on the "game" edge.

func HasGameWith

func HasGameWith(preds ...predicate.Game) predicate.Cabinet

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

func HasLocation

func HasLocation() predicate.Cabinet

HasLocation applies the HasEdge predicate on the "location" edge.

func HasLocationWith

func HasLocationWith(preds ...predicate.Location) predicate.Cabinet

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

func ID

func ID(id string) predicate.Cabinet

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Cabinet

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Cabinet

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Cabinet

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Cabinet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Cabinet

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Cabinet

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Cabinet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Cabinet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Cabinet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Cabinet

IDNotIn applies the NotIn predicate on the ID field.

func LocationID

func LocationID(v string) predicate.Cabinet

LocationID applies equality check predicate on the "location_id" field. It's identical to LocationIDEQ.

func LocationIDContains

func LocationIDContains(v string) predicate.Cabinet

LocationIDContains applies the Contains predicate on the "location_id" field.

func LocationIDContainsFold

func LocationIDContainsFold(v string) predicate.Cabinet

LocationIDContainsFold applies the ContainsFold predicate on the "location_id" field.

func LocationIDEQ

func LocationIDEQ(v string) predicate.Cabinet

LocationIDEQ applies the EQ predicate on the "location_id" field.

func LocationIDEqualFold

func LocationIDEqualFold(v string) predicate.Cabinet

LocationIDEqualFold applies the EqualFold predicate on the "location_id" field.

func LocationIDGT

func LocationIDGT(v string) predicate.Cabinet

LocationIDGT applies the GT predicate on the "location_id" field.

func LocationIDGTE

func LocationIDGTE(v string) predicate.Cabinet

LocationIDGTE applies the GTE predicate on the "location_id" field.

func LocationIDHasPrefix

func LocationIDHasPrefix(v string) predicate.Cabinet

LocationIDHasPrefix applies the HasPrefix predicate on the "location_id" field.

func LocationIDHasSuffix

func LocationIDHasSuffix(v string) predicate.Cabinet

LocationIDHasSuffix applies the HasSuffix predicate on the "location_id" field.

func LocationIDIn

func LocationIDIn(vs ...string) predicate.Cabinet

LocationIDIn applies the In predicate on the "location_id" field.

func LocationIDLT

func LocationIDLT(v string) predicate.Cabinet

LocationIDLT applies the LT predicate on the "location_id" field.

func LocationIDLTE

func LocationIDLTE(v string) predicate.Cabinet

LocationIDLTE applies the LTE predicate on the "location_id" field.

func LocationIDNEQ

func LocationIDNEQ(v string) predicate.Cabinet

LocationIDNEQ applies the NEQ predicate on the "location_id" field.

func LocationIDNotIn

func LocationIDNotIn(vs ...string) predicate.Cabinet

LocationIDNotIn applies the NotIn predicate on the "location_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Cabinet) predicate.Cabinet

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Cabinet queries.

func ByCount

func ByCount(opts ...sql.OrderTermOption) OrderOption

ByCount orders the results by the count field.

func ByGameField

func ByGameField(field string, opts ...sql.OrderTermOption) OrderOption

ByGameField orders the results by game field.

func ByGameID

func ByGameID(opts ...sql.OrderTermOption) OrderOption

ByGameID orders the results by the game_id field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLocationField

func ByLocationField(field string, opts ...sql.OrderTermOption) OrderOption

ByLocationField orders the results by location field.

func ByLocationID

func ByLocationID(opts ...sql.OrderTermOption) OrderOption

ByLocationID orders the results by the location_id field.

Jump to

Keyboard shortcuts

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