Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Character) predicate.Character
- func CreatedAt(v time.Time) predicate.Character
- func CreatedAtEQ(v time.Time) predicate.Character
- func CreatedAtGT(v time.Time) predicate.Character
- func CreatedAtGTE(v time.Time) predicate.Character
- func CreatedAtIn(vs ...time.Time) predicate.Character
- func CreatedAtLT(v time.Time) predicate.Character
- func CreatedAtLTE(v time.Time) predicate.Character
- func CreatedAtNEQ(v time.Time) predicate.Character
- func CreatedAtNotIn(vs ...time.Time) predicate.Character
- func Data(v string) predicate.Character
- func DataContains(v string) predicate.Character
- func DataContainsFold(v string) predicate.Character
- func DataEQ(v string) predicate.Character
- func DataEqualFold(v string) predicate.Character
- func DataGT(v string) predicate.Character
- func DataGTE(v string) predicate.Character
- func DataHasPrefix(v string) predicate.Character
- func DataHasSuffix(v string) predicate.Character
- func DataIn(vs ...string) predicate.Character
- func DataLT(v string) predicate.Character
- func DataLTE(v string) predicate.Character
- func DataNEQ(v string) predicate.Character
- func DataNotIn(vs ...string) predicate.Character
- func DeletedAt(v time.Time) predicate.Character
- func DeletedAtEQ(v time.Time) predicate.Character
- func DeletedAtGT(v time.Time) predicate.Character
- func DeletedAtGTE(v time.Time) predicate.Character
- func DeletedAtIn(vs ...time.Time) predicate.Character
- func DeletedAtIsNil() predicate.Character
- func DeletedAtLT(v time.Time) predicate.Character
- func DeletedAtLTE(v time.Time) predicate.Character
- func DeletedAtNEQ(v time.Time) predicate.Character
- func DeletedAtNotIn(vs ...time.Time) predicate.Character
- func DeletedAtNotNil() predicate.Character
- func HasPlayer() predicate.Character
- func HasPlayerWith(preds ...predicate.Player) predicate.Character
- func ID(id uuid.UUID) predicate.Character
- func IDEQ(id uuid.UUID) predicate.Character
- func IDGT(id uuid.UUID) predicate.Character
- func IDGTE(id uuid.UUID) predicate.Character
- func IDIn(ids ...uuid.UUID) predicate.Character
- func IDLT(id uuid.UUID) predicate.Character
- func IDLTE(id uuid.UUID) predicate.Character
- func IDNEQ(id uuid.UUID) predicate.Character
- func IDNotIn(ids ...uuid.UUID) predicate.Character
- func Not(p predicate.Character) predicate.Character
- func Or(predicates ...predicate.Character) predicate.Character
- func PlayerID(v uuid.UUID) predicate.Character
- func PlayerIDEQ(v uuid.UUID) predicate.Character
- func PlayerIDIn(vs ...uuid.UUID) predicate.Character
- func PlayerIDNEQ(v uuid.UUID) predicate.Character
- func PlayerIDNotIn(vs ...uuid.UUID) predicate.Character
- func Size(v int) predicate.Character
- func SizeEQ(v int) predicate.Character
- func SizeGT(v int) predicate.Character
- func SizeGTE(v int) predicate.Character
- func SizeIn(vs ...int) predicate.Character
- func SizeLT(v int) predicate.Character
- func SizeLTE(v int) predicate.Character
- func SizeNEQ(v int) predicate.Character
- func SizeNotIn(vs ...int) predicate.Character
- func Slot(v int) predicate.Character
- func SlotEQ(v int) predicate.Character
- func SlotGT(v int) predicate.Character
- func SlotGTE(v int) predicate.Character
- func SlotIn(vs ...int) predicate.Character
- func SlotLT(v int) predicate.Character
- func SlotLTE(v int) predicate.Character
- func SlotNEQ(v int) predicate.Character
- func SlotNotIn(vs ...int) predicate.Character
- func UpdatedAt(v time.Time) predicate.Character
- func UpdatedAtEQ(v time.Time) predicate.Character
- func UpdatedAtGT(v time.Time) predicate.Character
- func UpdatedAtGTE(v time.Time) predicate.Character
- func UpdatedAtIn(vs ...time.Time) predicate.Character
- func UpdatedAtLT(v time.Time) predicate.Character
- func UpdatedAtLTE(v time.Time) predicate.Character
- func UpdatedAtNEQ(v time.Time) predicate.Character
- func UpdatedAtNotIn(vs ...time.Time) predicate.Character
- func ValidColumn(column string) bool
- func Version(v int) predicate.Character
- func VersionEQ(v int) predicate.Character
- func VersionGT(v int) predicate.Character
- func VersionGTE(v int) predicate.Character
- func VersionIn(vs ...int) predicate.Character
- func VersionLT(v int) predicate.Character
- func VersionLTE(v int) predicate.Character
- func VersionNEQ(v int) predicate.Character
- func VersionNotIn(vs ...int) predicate.Character
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldPlayerID, FieldVersion, FieldSlot, FieldSize, FieldData, FieldDeletedAt, }
Columns holds all SQL columns for character fields.
Functions ¶
func CreatedAt ¶ added in v1.0.5
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶ added in v1.0.5
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶ added in v1.0.5
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶ added in v1.0.5
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶ added in v1.0.5
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶ added in v1.0.5
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶ added in v1.0.5
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶ added in v1.0.5
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶ added in v1.0.5
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Data ¶ added in v1.0.1
Data applies equality check predicate on the "data" field. It's identical to DataEQ.
func DataContains ¶ added in v1.0.1
DataContains applies the Contains predicate on the "data" field.
func DataContainsFold ¶ added in v1.0.1
DataContainsFold applies the ContainsFold predicate on the "data" field.
func DataEqualFold ¶ added in v1.0.1
DataEqualFold applies the EqualFold predicate on the "data" field.
func DataHasPrefix ¶ added in v1.0.1
DataHasPrefix applies the HasPrefix predicate on the "data" field.
func DataHasSuffix ¶ added in v1.0.1
DataHasSuffix applies the HasSuffix predicate on the "data" field.
func DeletedAt ¶ added in v1.0.5
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶ added in v1.0.5
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶ added in v1.0.5
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶ added in v1.0.5
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶ added in v1.0.5
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶ added in v1.0.5
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶ added in v1.0.5
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶ added in v1.0.5
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶ added in v1.0.5
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶ added in v1.0.5
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶ added in v1.0.5
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasPlayerWith ¶ added in v1.0.5
HasPlayerWith applies the HasEdge predicate on the "player" edge with a given conditions (other predicates).
func PlayerID ¶ added in v1.0.5
PlayerID applies equality check predicate on the "player_id" field. It's identical to PlayerIDEQ.
func PlayerIDEQ ¶ added in v1.0.5
PlayerIDEQ applies the EQ predicate on the "player_id" field.
func PlayerIDIn ¶ added in v1.0.5
PlayerIDIn applies the In predicate on the "player_id" field.
func PlayerIDNEQ ¶ added in v1.0.5
PlayerIDNEQ applies the NEQ predicate on the "player_id" field.
func PlayerIDNotIn ¶ added in v1.0.5
PlayerIDNotIn applies the NotIn predicate on the "player_id" field.
func Size ¶ added in v1.0.1
Size applies equality check predicate on the "size" field. It's identical to SizeEQ.
func UpdatedAt ¶ added in v1.0.5
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶ added in v1.0.5
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶ added in v1.0.5
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶ added in v1.0.5
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶ added in v1.0.5
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶ added in v1.0.5
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶ added in v1.0.5
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶ added in v1.0.5
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶ added in v1.0.5
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶ added in v1.0.5
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶ added in v1.0.5
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶ added in v1.0.5
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶ added in v1.0.5
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶ added in v1.0.5
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.