account

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the account type in the database.
	Label = "account"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldInternalID holds the string denoting the internal_id field in the database.
	FieldInternalID = "internal_id"
	// FieldPlatform holds the string denoting the platform field in the database.
	FieldPlatform = "platform"
	// FieldPlatformAccountID holds the string denoting the platform_account_id field in the database.
	FieldPlatformAccountID = "platform_account_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldProfileURL holds the string denoting the profile_url field in the database.
	FieldProfileURL = "profile_url"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the account in the database.
	Table = "accounts"
)

Variables

View Source
var (
	// 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
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for account fields.

Functions

func And

func And(predicates ...predicate.Account) predicate.Account

And groups predicates with the AND operator between them.

func AvatarURL

func AvatarURL(v string) predicate.Account

AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.

func AvatarURLContains

func AvatarURLContains(v string) predicate.Account

AvatarURLContains applies the Contains predicate on the "avatar_url" field.

func AvatarURLContainsFold

func AvatarURLContainsFold(v string) predicate.Account

AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.

func AvatarURLEQ

func AvatarURLEQ(v string) predicate.Account

AvatarURLEQ applies the EQ predicate on the "avatar_url" field.

func AvatarURLEqualFold

func AvatarURLEqualFold(v string) predicate.Account

AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.

func AvatarURLGT

func AvatarURLGT(v string) predicate.Account

AvatarURLGT applies the GT predicate on the "avatar_url" field.

func AvatarURLGTE

func AvatarURLGTE(v string) predicate.Account

AvatarURLGTE applies the GTE predicate on the "avatar_url" field.

func AvatarURLHasPrefix

func AvatarURLHasPrefix(v string) predicate.Account

AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.

func AvatarURLHasSuffix

func AvatarURLHasSuffix(v string) predicate.Account

AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.

func AvatarURLIn

func AvatarURLIn(vs ...string) predicate.Account

AvatarURLIn applies the In predicate on the "avatar_url" field.

func AvatarURLLT

func AvatarURLLT(v string) predicate.Account

AvatarURLLT applies the LT predicate on the "avatar_url" field.

func AvatarURLLTE

func AvatarURLLTE(v string) predicate.Account

AvatarURLLTE applies the LTE predicate on the "avatar_url" field.

func AvatarURLNEQ

func AvatarURLNEQ(v string) predicate.Account

AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.

func AvatarURLNotIn

func AvatarURLNotIn(vs ...string) predicate.Account

AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Account

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Account

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Account

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Account

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Account

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Account

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Account

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

func CreatedAtNotIn

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

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

func ID

func ID(id int) predicate.Account

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Account

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Account

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Account

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Account

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Account

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Account

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InternalID

func InternalID(v int64) predicate.Account

InternalID applies equality check predicate on the "internal_id" field. It's identical to InternalIDEQ.

func InternalIDEQ

func InternalIDEQ(v int64) predicate.Account

InternalIDEQ applies the EQ predicate on the "internal_id" field.

func InternalIDGT

func InternalIDGT(v int64) predicate.Account

InternalIDGT applies the GT predicate on the "internal_id" field.

func InternalIDGTE

func InternalIDGTE(v int64) predicate.Account

InternalIDGTE applies the GTE predicate on the "internal_id" field.

func InternalIDIn

func InternalIDIn(vs ...int64) predicate.Account

InternalIDIn applies the In predicate on the "internal_id" field.

func InternalIDLT

func InternalIDLT(v int64) predicate.Account

InternalIDLT applies the LT predicate on the "internal_id" field.

func InternalIDLTE

func InternalIDLTE(v int64) predicate.Account

InternalIDLTE applies the LTE predicate on the "internal_id" field.

func InternalIDNEQ

func InternalIDNEQ(v int64) predicate.Account

InternalIDNEQ applies the NEQ predicate on the "internal_id" field.

func InternalIDNotIn

func InternalIDNotIn(vs ...int64) predicate.Account

InternalIDNotIn applies the NotIn predicate on the "internal_id" field.

func Name

func Name(v string) predicate.Account

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Account

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Account

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Account

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Account

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Account

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Account

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Account

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Account

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Account

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Account

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Account

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Account

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Account

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Account) predicate.Account

Or groups predicates with the OR operator between them.

func PlatformAccountID

func PlatformAccountID(v string) predicate.Account

PlatformAccountID applies equality check predicate on the "platform_account_id" field. It's identical to PlatformAccountIDEQ.

func PlatformAccountIDContains

func PlatformAccountIDContains(v string) predicate.Account

PlatformAccountIDContains applies the Contains predicate on the "platform_account_id" field.

func PlatformAccountIDContainsFold

func PlatformAccountIDContainsFold(v string) predicate.Account

PlatformAccountIDContainsFold applies the ContainsFold predicate on the "platform_account_id" field.

func PlatformAccountIDEQ

func PlatformAccountIDEQ(v string) predicate.Account

PlatformAccountIDEQ applies the EQ predicate on the "platform_account_id" field.

func PlatformAccountIDEqualFold

func PlatformAccountIDEqualFold(v string) predicate.Account

PlatformAccountIDEqualFold applies the EqualFold predicate on the "platform_account_id" field.

func PlatformAccountIDGT

func PlatformAccountIDGT(v string) predicate.Account

PlatformAccountIDGT applies the GT predicate on the "platform_account_id" field.

func PlatformAccountIDGTE

func PlatformAccountIDGTE(v string) predicate.Account

PlatformAccountIDGTE applies the GTE predicate on the "platform_account_id" field.

func PlatformAccountIDHasPrefix

func PlatformAccountIDHasPrefix(v string) predicate.Account

PlatformAccountIDHasPrefix applies the HasPrefix predicate on the "platform_account_id" field.

func PlatformAccountIDHasSuffix

func PlatformAccountIDHasSuffix(v string) predicate.Account

PlatformAccountIDHasSuffix applies the HasSuffix predicate on the "platform_account_id" field.

func PlatformAccountIDIn

func PlatformAccountIDIn(vs ...string) predicate.Account

PlatformAccountIDIn applies the In predicate on the "platform_account_id" field.

func PlatformAccountIDLT

func PlatformAccountIDLT(v string) predicate.Account

PlatformAccountIDLT applies the LT predicate on the "platform_account_id" field.

func PlatformAccountIDLTE

func PlatformAccountIDLTE(v string) predicate.Account

PlatformAccountIDLTE applies the LTE predicate on the "platform_account_id" field.

func PlatformAccountIDNEQ

func PlatformAccountIDNEQ(v string) predicate.Account

PlatformAccountIDNEQ applies the NEQ predicate on the "platform_account_id" field.

func PlatformAccountIDNotIn

func PlatformAccountIDNotIn(vs ...string) predicate.Account

PlatformAccountIDNotIn applies the NotIn predicate on the "platform_account_id" field.

func PlatformEQ

func PlatformEQ(v Platform) predicate.Account

PlatformEQ applies the EQ predicate on the "platform" field.

func PlatformIn

func PlatformIn(vs ...Platform) predicate.Account

PlatformIn applies the In predicate on the "platform" field.

func PlatformNEQ

func PlatformNEQ(v Platform) predicate.Account

PlatformNEQ applies the NEQ predicate on the "platform" field.

func PlatformNotIn

func PlatformNotIn(vs ...Platform) predicate.Account

PlatformNotIn applies the NotIn predicate on the "platform" field.

func PlatformValidator

func PlatformValidator(pl Platform) error

PlatformValidator is a validator for the "platform" field enum values. It is called by the builders before save.

func ProfileURL

func ProfileURL(v string) predicate.Account

ProfileURL applies equality check predicate on the "profile_url" field. It's identical to ProfileURLEQ.

func ProfileURLContains

func ProfileURLContains(v string) predicate.Account

ProfileURLContains applies the Contains predicate on the "profile_url" field.

func ProfileURLContainsFold

func ProfileURLContainsFold(v string) predicate.Account

ProfileURLContainsFold applies the ContainsFold predicate on the "profile_url" field.

func ProfileURLEQ

func ProfileURLEQ(v string) predicate.Account

ProfileURLEQ applies the EQ predicate on the "profile_url" field.

func ProfileURLEqualFold

func ProfileURLEqualFold(v string) predicate.Account

ProfileURLEqualFold applies the EqualFold predicate on the "profile_url" field.

func ProfileURLGT

func ProfileURLGT(v string) predicate.Account

ProfileURLGT applies the GT predicate on the "profile_url" field.

func ProfileURLGTE

func ProfileURLGTE(v string) predicate.Account

ProfileURLGTE applies the GTE predicate on the "profile_url" field.

func ProfileURLHasPrefix

func ProfileURLHasPrefix(v string) predicate.Account

ProfileURLHasPrefix applies the HasPrefix predicate on the "profile_url" field.

func ProfileURLHasSuffix

func ProfileURLHasSuffix(v string) predicate.Account

ProfileURLHasSuffix applies the HasSuffix predicate on the "profile_url" field.

func ProfileURLIn

func ProfileURLIn(vs ...string) predicate.Account

ProfileURLIn applies the In predicate on the "profile_url" field.

func ProfileURLLT

func ProfileURLLT(v string) predicate.Account

ProfileURLLT applies the LT predicate on the "profile_url" field.

func ProfileURLLTE

func ProfileURLLTE(v string) predicate.Account

ProfileURLLTE applies the LTE predicate on the "profile_url" field.

func ProfileURLNEQ

func ProfileURLNEQ(v string) predicate.Account

ProfileURLNEQ applies the NEQ predicate on the "profile_url" field.

func ProfileURLNotIn

func ProfileURLNotIn(vs ...string) predicate.Account

ProfileURLNotIn applies the NotIn predicate on the "profile_url" field.

func UpdatedAt added in v0.0.5

func UpdatedAt(v time.Time) predicate.Account

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

func UpdatedAtEQ added in v0.0.5

func UpdatedAtEQ(v time.Time) predicate.Account

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

func UpdatedAtGT added in v0.0.5

func UpdatedAtGT(v time.Time) predicate.Account

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

func UpdatedAtGTE added in v0.0.5

func UpdatedAtGTE(v time.Time) predicate.Account

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

func UpdatedAtIn added in v0.0.5

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

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

func UpdatedAtLT added in v0.0.5

func UpdatedAtLT(v time.Time) predicate.Account

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

func UpdatedAtLTE added in v0.0.5

func UpdatedAtLTE(v time.Time) predicate.Account

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

func UpdatedAtNEQ added in v0.0.5

func UpdatedAtNEQ(v time.Time) predicate.Account

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

func UpdatedAtNotIn added in v0.0.5

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

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

Types

type Platform

type Platform string

Platform defines the type for the "platform" enum field.

const (
	PlatformSteam Platform = "steam"
)

Platform values.

func (Platform) String

func (pl Platform) String() string

Jump to

Keyboard shortcuts

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