character

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the character type in the database.
	Label = "character"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldPlayerID holds the string denoting the player_id field in the database.
	FieldPlayerID = "player_id"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldSlot holds the string denoting the slot field in the database.
	FieldSlot = "slot"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// EdgePlayer holds the string denoting the player edge name in mutations.
	EdgePlayer = "player"
	// Table holds the table name of the character in the database.
	Table = "characters"
	// PlayerTable is the table that holds the player relation/edge.
	PlayerTable = "characters"
	// PlayerInverseTable is the table name for the Player entity.
	// It exists in this package in order to avoid circular dependency with the "player" package.
	PlayerInverseTable = "players"
	// PlayerColumn is the table column denoting the player relation/edge.
	PlayerColumn = "player_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(int) error
	// DefaultSlot holds the default value on creation for the "slot" field.
	DefaultSlot int
	// SlotValidator is a validator for the "slot" field. It is called by the builders before save.
	SlotValidator func(int) error
	// DefaultSize holds the default value on creation for the "size" field.
	DefaultSize int
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for character fields.

Functions

func And

func And(predicates ...predicate.Character) predicate.Character

And groups predicates with the AND operator between them.

func CreatedAt added in v1.0.5

func CreatedAt(v time.Time) predicate.Character

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ added in v1.0.5

func CreatedAtEQ(v time.Time) predicate.Character

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT added in v1.0.5

func CreatedAtGT(v time.Time) predicate.Character

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE added in v1.0.5

func CreatedAtGTE(v time.Time) predicate.Character

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn added in v1.0.5

func CreatedAtIn(vs ...time.Time) predicate.Character

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT added in v1.0.5

func CreatedAtLT(v time.Time) predicate.Character

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE added in v1.0.5

func CreatedAtLTE(v time.Time) predicate.Character

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ added in v1.0.5

func CreatedAtNEQ(v time.Time) predicate.Character

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn added in v1.0.5

func CreatedAtNotIn(vs ...time.Time) predicate.Character

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Data added in v1.0.1

func Data(v string) predicate.Character

Data applies equality check predicate on the "data" field. It's identical to DataEQ.

func DataContains added in v1.0.1

func DataContains(v string) predicate.Character

DataContains applies the Contains predicate on the "data" field.

func DataContainsFold added in v1.0.1

func DataContainsFold(v string) predicate.Character

DataContainsFold applies the ContainsFold predicate on the "data" field.

func DataEQ added in v1.0.1

func DataEQ(v string) predicate.Character

DataEQ applies the EQ predicate on the "data" field.

func DataEqualFold added in v1.0.1

func DataEqualFold(v string) predicate.Character

DataEqualFold applies the EqualFold predicate on the "data" field.

func DataGT added in v1.0.1

func DataGT(v string) predicate.Character

DataGT applies the GT predicate on the "data" field.

func DataGTE added in v1.0.1

func DataGTE(v string) predicate.Character

DataGTE applies the GTE predicate on the "data" field.

func DataHasPrefix added in v1.0.1

func DataHasPrefix(v string) predicate.Character

DataHasPrefix applies the HasPrefix predicate on the "data" field.

func DataHasSuffix added in v1.0.1

func DataHasSuffix(v string) predicate.Character

DataHasSuffix applies the HasSuffix predicate on the "data" field.

func DataIn added in v1.0.1

func DataIn(vs ...string) predicate.Character

DataIn applies the In predicate on the "data" field.

func DataLT added in v1.0.1

func DataLT(v string) predicate.Character

DataLT applies the LT predicate on the "data" field.

func DataLTE added in v1.0.1

func DataLTE(v string) predicate.Character

DataLTE applies the LTE predicate on the "data" field.

func DataNEQ added in v1.0.1

func DataNEQ(v string) predicate.Character

DataNEQ applies the NEQ predicate on the "data" field.

func DataNotIn added in v1.0.1

func DataNotIn(vs ...string) predicate.Character

DataNotIn applies the NotIn predicate on the "data" field.

func DeletedAt added in v1.0.5

func DeletedAt(v time.Time) predicate.Character

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ added in v1.0.5

func DeletedAtEQ(v time.Time) predicate.Character

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT added in v1.0.5

func DeletedAtGT(v time.Time) predicate.Character

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE added in v1.0.5

func DeletedAtGTE(v time.Time) predicate.Character

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn added in v1.0.5

func DeletedAtIn(vs ...time.Time) predicate.Character

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil added in v1.0.5

func DeletedAtIsNil() predicate.Character

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT added in v1.0.5

func DeletedAtLT(v time.Time) predicate.Character

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE added in v1.0.5

func DeletedAtLTE(v time.Time) predicate.Character

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ added in v1.0.5

func DeletedAtNEQ(v time.Time) predicate.Character

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn added in v1.0.5

func DeletedAtNotIn(vs ...time.Time) predicate.Character

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil added in v1.0.5

func DeletedAtNotNil() predicate.Character

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasPlayer added in v1.0.5

func HasPlayer() predicate.Character

HasPlayer applies the HasEdge predicate on the "player" edge.

func HasPlayerWith added in v1.0.5

func HasPlayerWith(preds ...predicate.Player) predicate.Character

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Character

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Character

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Character

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Character

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Character

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Character

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Character

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Character

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

Or groups predicates with the OR operator between them.

func PlayerID added in v1.0.5

func PlayerID(v uuid.UUID) predicate.Character

PlayerID applies equality check predicate on the "player_id" field. It's identical to PlayerIDEQ.

func PlayerIDEQ added in v1.0.5

func PlayerIDEQ(v uuid.UUID) predicate.Character

PlayerIDEQ applies the EQ predicate on the "player_id" field.

func PlayerIDIn added in v1.0.5

func PlayerIDIn(vs ...uuid.UUID) predicate.Character

PlayerIDIn applies the In predicate on the "player_id" field.

func PlayerIDNEQ added in v1.0.5

func PlayerIDNEQ(v uuid.UUID) predicate.Character

PlayerIDNEQ applies the NEQ predicate on the "player_id" field.

func PlayerIDNotIn added in v1.0.5

func PlayerIDNotIn(vs ...uuid.UUID) predicate.Character

PlayerIDNotIn applies the NotIn predicate on the "player_id" field.

func Size added in v1.0.1

func Size(v int) predicate.Character

Size applies equality check predicate on the "size" field. It's identical to SizeEQ.

func SizeEQ added in v1.0.1

func SizeEQ(v int) predicate.Character

SizeEQ applies the EQ predicate on the "size" field.

func SizeGT added in v1.0.1

func SizeGT(v int) predicate.Character

SizeGT applies the GT predicate on the "size" field.

func SizeGTE added in v1.0.1

func SizeGTE(v int) predicate.Character

SizeGTE applies the GTE predicate on the "size" field.

func SizeIn added in v1.0.1

func SizeIn(vs ...int) predicate.Character

SizeIn applies the In predicate on the "size" field.

func SizeLT added in v1.0.1

func SizeLT(v int) predicate.Character

SizeLT applies the LT predicate on the "size" field.

func SizeLTE added in v1.0.1

func SizeLTE(v int) predicate.Character

SizeLTE applies the LTE predicate on the "size" field.

func SizeNEQ added in v1.0.1

func SizeNEQ(v int) predicate.Character

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn added in v1.0.1

func SizeNotIn(vs ...int) predicate.Character

SizeNotIn applies the NotIn predicate on the "size" field.

func Slot

func Slot(v int) predicate.Character

Slot applies equality check predicate on the "slot" field. It's identical to SlotEQ.

func SlotEQ

func SlotEQ(v int) predicate.Character

SlotEQ applies the EQ predicate on the "slot" field.

func SlotGT

func SlotGT(v int) predicate.Character

SlotGT applies the GT predicate on the "slot" field.

func SlotGTE

func SlotGTE(v int) predicate.Character

SlotGTE applies the GTE predicate on the "slot" field.

func SlotIn

func SlotIn(vs ...int) predicate.Character

SlotIn applies the In predicate on the "slot" field.

func SlotLT

func SlotLT(v int) predicate.Character

SlotLT applies the LT predicate on the "slot" field.

func SlotLTE

func SlotLTE(v int) predicate.Character

SlotLTE applies the LTE predicate on the "slot" field.

func SlotNEQ

func SlotNEQ(v int) predicate.Character

SlotNEQ applies the NEQ predicate on the "slot" field.

func SlotNotIn

func SlotNotIn(vs ...int) predicate.Character

SlotNotIn applies the NotIn predicate on the "slot" field.

func UpdatedAt added in v1.0.5

func UpdatedAt(v time.Time) predicate.Character

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ added in v1.0.5

func UpdatedAtEQ(v time.Time) predicate.Character

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT added in v1.0.5

func UpdatedAtGT(v time.Time) predicate.Character

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE added in v1.0.5

func UpdatedAtGTE(v time.Time) predicate.Character

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn added in v1.0.5

func UpdatedAtIn(vs ...time.Time) predicate.Character

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT added in v1.0.5

func UpdatedAtLT(v time.Time) predicate.Character

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE added in v1.0.5

func UpdatedAtLTE(v time.Time) predicate.Character

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ added in v1.0.5

func UpdatedAtNEQ(v time.Time) predicate.Character

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn added in v1.0.5

func UpdatedAtNotIn(vs ...time.Time) predicate.Character

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version added in v1.0.5

func Version(v int) predicate.Character

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ added in v1.0.5

func VersionEQ(v int) predicate.Character

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT added in v1.0.5

func VersionGT(v int) predicate.Character

VersionGT applies the GT predicate on the "version" field.

func VersionGTE added in v1.0.5

func VersionGTE(v int) predicate.Character

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn added in v1.0.5

func VersionIn(vs ...int) predicate.Character

VersionIn applies the In predicate on the "version" field.

func VersionLT added in v1.0.5

func VersionLT(v int) predicate.Character

VersionLT applies the LT predicate on the "version" field.

func VersionLTE added in v1.0.5

func VersionLTE(v int) predicate.Character

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ added in v1.0.5

func VersionNEQ(v int) predicate.Character

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn added in v1.0.5

func VersionNotIn(vs ...int) predicate.Character

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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