Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func AvatarURL(v string) predicate.User
- func AvatarURLContains(v string) predicate.User
- func AvatarURLContainsFold(v string) predicate.User
- func AvatarURLEQ(v string) predicate.User
- func AvatarURLEqualFold(v string) predicate.User
- func AvatarURLGT(v string) predicate.User
- func AvatarURLGTE(v string) predicate.User
- func AvatarURLHasPrefix(v string) predicate.User
- func AvatarURLHasSuffix(v string) predicate.User
- func AvatarURLIn(vs ...string) predicate.User
- func AvatarURLIsNil() predicate.User
- func AvatarURLLT(v string) predicate.User
- func AvatarURLLTE(v string) predicate.User
- func AvatarURLNEQ(v string) predicate.User
- func AvatarURLNotIn(vs ...string) predicate.User
- func AvatarURLNotNil() predicate.User
- func HasDiscordAccounts() predicate.User
- func HasDiscordAccountsWith(preds ...predicate.DiscordAccount) predicate.User
- func HasGithubAccounts() predicate.User
- func HasGithubAccountsWith(preds ...predicate.GithubAccount) predicate.User
- func HasProjectContributions() predicate.User
- func HasProjectContributionsWith(preds ...predicate.ProjectContributor) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldUsername, FieldAvatarURL, }
Columns holds all SQL columns for user fields.
Functions ¶
func AvatarURL ¶
AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURLContains ¶
AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContainsFold ¶
AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLEQ ¶
AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEqualFold ¶
AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLGT ¶
AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGTE ¶
AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLHasPrefix ¶
AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasSuffix ¶
AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLIn ¶
AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLIsNil ¶
AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
func AvatarURLLT ¶
AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLTE ¶
AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLNEQ ¶
AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNotIn ¶
AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
func AvatarURLNotNil ¶
AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.
func HasDiscordAccounts ¶
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 ¶
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 ¶
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 Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.