Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Cabinet) predicate.Cabinet
- func Count(v int) predicate.Cabinet
- func CountEQ(v int) predicate.Cabinet
- func CountGT(v int) predicate.Cabinet
- func CountGTE(v int) predicate.Cabinet
- func CountIn(vs ...int) predicate.Cabinet
- func CountIsNil() predicate.Cabinet
- func CountLT(v int) predicate.Cabinet
- func CountLTE(v int) predicate.Cabinet
- func CountNEQ(v int) predicate.Cabinet
- func CountNotIn(vs ...int) predicate.Cabinet
- func CountNotNil() predicate.Cabinet
- func GameID(v string) predicate.Cabinet
- func GameIDContains(v string) predicate.Cabinet
- func GameIDContainsFold(v string) predicate.Cabinet
- func GameIDEQ(v string) predicate.Cabinet
- func GameIDEqualFold(v string) predicate.Cabinet
- func GameIDGT(v string) predicate.Cabinet
- func GameIDGTE(v string) predicate.Cabinet
- func GameIDHasPrefix(v string) predicate.Cabinet
- func GameIDHasSuffix(v string) predicate.Cabinet
- func GameIDIn(vs ...string) predicate.Cabinet
- func GameIDLT(v string) predicate.Cabinet
- func GameIDLTE(v string) predicate.Cabinet
- func GameIDNEQ(v string) predicate.Cabinet
- func GameIDNotIn(vs ...string) predicate.Cabinet
- func HasGame() predicate.Cabinet
- func HasGameWith(preds ...predicate.Game) predicate.Cabinet
- func HasLocation() predicate.Cabinet
- func HasLocationWith(preds ...predicate.Location) predicate.Cabinet
- func ID(id string) predicate.Cabinet
- func IDContainsFold(id string) predicate.Cabinet
- func IDEQ(id string) predicate.Cabinet
- func IDEqualFold(id string) predicate.Cabinet
- func IDGT(id string) predicate.Cabinet
- func IDGTE(id string) predicate.Cabinet
- func IDIn(ids ...string) predicate.Cabinet
- func IDLT(id string) predicate.Cabinet
- func IDLTE(id string) predicate.Cabinet
- func IDNEQ(id string) predicate.Cabinet
- func IDNotIn(ids ...string) predicate.Cabinet
- func LocationID(v string) predicate.Cabinet
- func LocationIDContains(v string) predicate.Cabinet
- func LocationIDContainsFold(v string) predicate.Cabinet
- func LocationIDEQ(v string) predicate.Cabinet
- func LocationIDEqualFold(v string) predicate.Cabinet
- func LocationIDGT(v string) predicate.Cabinet
- func LocationIDGTE(v string) predicate.Cabinet
- func LocationIDHasPrefix(v string) predicate.Cabinet
- func LocationIDHasSuffix(v string) predicate.Cabinet
- func LocationIDIn(vs ...string) predicate.Cabinet
- func LocationIDLT(v string) predicate.Cabinet
- func LocationIDLTE(v string) predicate.Cabinet
- func LocationIDNEQ(v string) predicate.Cabinet
- func LocationIDNotIn(vs ...string) predicate.Cabinet
- func Not(p predicate.Cabinet) predicate.Cabinet
- func Or(predicates ...predicate.Cabinet) predicate.Cabinet
- func ValidColumn(column string) bool
- type OrderOption
- func ByCount(opts ...sql.OrderTermOption) OrderOption
- func ByGameField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGameID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLocationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLocationID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldCount, FieldLocationID, FieldGameID, }
Columns holds all SQL columns for cabinet fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Functions ¶
func Count ¶
Count applies equality check predicate on the "count" field. It's identical to CountEQ.
func CountIsNil ¶
CountIsNil applies the IsNil predicate on the "count" field.
func CountNotIn ¶
CountNotIn applies the NotIn predicate on the "count" field.
func CountNotNil ¶
CountNotNil applies the NotNil predicate on the "count" field.
func GameID ¶
GameID applies equality check predicate on the "game_id" field. It's identical to GameIDEQ.
func GameIDContains ¶
GameIDContains applies the Contains predicate on the "game_id" field.
func GameIDContainsFold ¶
GameIDContainsFold applies the ContainsFold predicate on the "game_id" field.
func GameIDEqualFold ¶
GameIDEqualFold applies the EqualFold predicate on the "game_id" field.
func GameIDHasPrefix ¶
GameIDHasPrefix applies the HasPrefix predicate on the "game_id" field.
func GameIDHasSuffix ¶
GameIDHasSuffix applies the HasSuffix predicate on the "game_id" field.
func GameIDNotIn ¶
GameIDNotIn applies the NotIn predicate on the "game_id" field.
func HasGameWith ¶
HasGameWith applies the HasEdge predicate on the "game" edge with a given conditions (other predicates).
func HasLocation ¶
HasLocation applies the HasEdge predicate on the "location" edge.
func HasLocationWith ¶
HasLocationWith applies the HasEdge predicate on the "location" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func LocationID ¶
LocationID applies equality check predicate on the "location_id" field. It's identical to LocationIDEQ.
func LocationIDContains ¶
LocationIDContains applies the Contains predicate on the "location_id" field.
func LocationIDContainsFold ¶
LocationIDContainsFold applies the ContainsFold predicate on the "location_id" field.
func LocationIDEQ ¶
LocationIDEQ applies the EQ predicate on the "location_id" field.
func LocationIDEqualFold ¶
LocationIDEqualFold applies the EqualFold predicate on the "location_id" field.
func LocationIDGT ¶
LocationIDGT applies the GT predicate on the "location_id" field.
func LocationIDGTE ¶
LocationIDGTE applies the GTE predicate on the "location_id" field.
func LocationIDHasPrefix ¶
LocationIDHasPrefix applies the HasPrefix predicate on the "location_id" field.
func LocationIDHasSuffix ¶
LocationIDHasSuffix applies the HasSuffix predicate on the "location_id" field.
func LocationIDIn ¶
LocationIDIn applies the In predicate on the "location_id" field.
func LocationIDLT ¶
LocationIDLT applies the LT predicate on the "location_id" field.
func LocationIDLTE ¶
LocationIDLTE applies the LTE predicate on the "location_id" field.
func LocationIDNEQ ¶
LocationIDNEQ applies the NEQ predicate on the "location_id" field.
func LocationIDNotIn ¶
LocationIDNotIn applies the NotIn predicate on the "location_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.