user

package
v0.0.0-...-5435fe0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// EdgeDiscordAccounts holds the string denoting the discord_accounts edge name in mutations.
	EdgeDiscordAccounts = "discord_accounts"
	// EdgeGithubAccounts holds the string denoting the github_accounts edge name in mutations.
	EdgeGithubAccounts = "github_accounts"
	// EdgeProjectContributions holds the string denoting the project_contributions edge name in mutations.
	EdgeProjectContributions = "project_contributions"
	// Table holds the table name of the user in the database.
	Table = "users"
	// DiscordAccountsTable is the table that holds the discord_accounts relation/edge.
	DiscordAccountsTable = "discord_accounts"
	// DiscordAccountsInverseTable is the table name for the DiscordAccount entity.
	// It exists in this package in order to avoid circular dependency with the "discordaccount" package.
	DiscordAccountsInverseTable = "discord_accounts"
	// DiscordAccountsColumn is the table column denoting the discord_accounts relation/edge.
	DiscordAccountsColumn = "user_discord_accounts"
	// GithubAccountsTable is the table that holds the github_accounts relation/edge.
	GithubAccountsTable = "github_accounts"
	// GithubAccountsInverseTable is the table name for the GithubAccount entity.
	// It exists in this package in order to avoid circular dependency with the "githubaccount" package.
	GithubAccountsInverseTable = "github_accounts"
	// GithubAccountsColumn is the table column denoting the github_accounts relation/edge.
	GithubAccountsColumn = "user_github_accounts"
	// ProjectContributionsTable is the table that holds the project_contributions relation/edge.
	ProjectContributionsTable = "project_contributors"
	// ProjectContributionsInverseTable is the table name for the ProjectContributor entity.
	// It exists in this package in order to avoid circular dependency with the "projectcontributor" package.
	ProjectContributionsInverseTable = "project_contributors"
	// ProjectContributionsColumn is the table column denoting the project_contributions relation/edge.
	ProjectContributionsColumn = "user_project_contributions"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/fogo-sh/grackdb/ent/runtime"

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func AvatarURL

func AvatarURL(v string) predicate.User

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

func AvatarURLContains

func AvatarURLContains(v string) predicate.User

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

func AvatarURLContainsFold

func AvatarURLContainsFold(v string) predicate.User

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

func AvatarURLEQ

func AvatarURLEQ(v string) predicate.User

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

func AvatarURLEqualFold

func AvatarURLEqualFold(v string) predicate.User

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

func AvatarURLGT

func AvatarURLGT(v string) predicate.User

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

func AvatarURLGTE

func AvatarURLGTE(v string) predicate.User

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

func AvatarURLHasPrefix

func AvatarURLHasPrefix(v string) predicate.User

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

func AvatarURLHasSuffix

func AvatarURLHasSuffix(v string) predicate.User

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

func AvatarURLIn

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

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

func AvatarURLIsNil

func AvatarURLIsNil() predicate.User

AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.

func AvatarURLLT

func AvatarURLLT(v string) predicate.User

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

func AvatarURLLTE

func AvatarURLLTE(v string) predicate.User

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

func AvatarURLNEQ

func AvatarURLNEQ(v string) predicate.User

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

func AvatarURLNotIn

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

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

func AvatarURLNotNil

func AvatarURLNotNil() predicate.User

AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.

func HasDiscordAccounts

func HasDiscordAccounts() predicate.User

HasDiscordAccounts applies the HasEdge predicate on the "discord_accounts" edge.

func HasDiscordAccountsWith

func HasDiscordAccountsWith(preds ...predicate.DiscordAccount) predicate.User

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

func HasGithubAccounts

func HasGithubAccounts() predicate.User

HasGithubAccounts applies the HasEdge predicate on the "github_accounts" edge.

func HasGithubAccountsWith

func HasGithubAccountsWith(preds ...predicate.GithubAccount) predicate.User

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

func HasProjectContributions

func HasProjectContributions() predicate.User

HasProjectContributions applies the HasEdge predicate on the "project_contributions" edge.

func HasProjectContributionsWith

func HasProjectContributionsWith(preds ...predicate.ProjectContributor) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Username

func Username(v string) predicate.User

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.User

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.User

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.User

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.User

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.User

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.User

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.User

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.User

UsernameNotIn applies the NotIn predicate on the "username" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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