Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GithubAccount) predicate.GithubAccount
- func HasOrganizationMemberships() predicate.GithubAccount
- func HasOrganizationMembershipsWith(preds ...predicate.GithubOrganizationMember) predicate.GithubAccount
- func HasOwner() predicate.GithubAccount
- func HasOwnerWith(preds ...predicate.User) predicate.GithubAccount
- func HasRepositories() predicate.GithubAccount
- func HasRepositoriesWith(preds ...predicate.Repository) predicate.GithubAccount
- func ID(id int) predicate.GithubAccount
- func IDEQ(id int) predicate.GithubAccount
- func IDGT(id int) predicate.GithubAccount
- func IDGTE(id int) predicate.GithubAccount
- func IDIn(ids ...int) predicate.GithubAccount
- func IDLT(id int) predicate.GithubAccount
- func IDLTE(id int) predicate.GithubAccount
- func IDNEQ(id int) predicate.GithubAccount
- func IDNotIn(ids ...int) predicate.GithubAccount
- func Not(p predicate.GithubAccount) predicate.GithubAccount
- func Or(predicates ...predicate.GithubAccount) predicate.GithubAccount
- func Username(v string) predicate.GithubAccount
- func UsernameContains(v string) predicate.GithubAccount
- func UsernameContainsFold(v string) predicate.GithubAccount
- func UsernameEQ(v string) predicate.GithubAccount
- func UsernameEqualFold(v string) predicate.GithubAccount
- func UsernameGT(v string) predicate.GithubAccount
- func UsernameGTE(v string) predicate.GithubAccount
- func UsernameHasPrefix(v string) predicate.GithubAccount
- func UsernameHasSuffix(v string) predicate.GithubAccount
- func UsernameIn(vs ...string) predicate.GithubAccount
- func UsernameLT(v string) predicate.GithubAccount
- func UsernameLTE(v string) predicate.GithubAccount
- func UsernameNEQ(v string) predicate.GithubAccount
- func UsernameNotIn(vs ...string) predicate.GithubAccount
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the githubaccount type in the database. Label = "github_account" // 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" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeOrganizationMemberships holds the string denoting the organization_memberships edge name in mutations. EdgeOrganizationMemberships = "organization_memberships" // EdgeRepositories holds the string denoting the repositories edge name in mutations. EdgeRepositories = "repositories" // Table holds the table name of the githubaccount in the database. Table = "github_accounts" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "github_accounts" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_github_accounts" // OrganizationMembershipsTable is the table that holds the organization_memberships relation/edge. OrganizationMembershipsTable = "github_organization_members" // OrganizationMembershipsInverseTable is the table name for the GithubOrganizationMember entity. // It exists in this package in order to avoid circular dependency with the "githuborganizationmember" package. OrganizationMembershipsInverseTable = "github_organization_members" // OrganizationMembershipsColumn is the table column denoting the organization_memberships relation/edge. OrganizationMembershipsColumn = "github_account_organization_memberships" // RepositoriesTable is the table that holds the repositories relation/edge. RepositoriesTable = "repositories" // RepositoriesInverseTable is the table name for the Repository entity. // It exists in this package in order to avoid circular dependency with the "repository" package. RepositoriesInverseTable = "repositories" // RepositoriesColumn is the table column denoting the repositories relation/edge. RepositoriesColumn = "github_account_repositories" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error )
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, }
Columns holds all SQL columns for githubaccount fields.
var ForeignKeys = []string{
"user_github_accounts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "github_accounts" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.GithubAccount) predicate.GithubAccount
And groups predicates with the AND operator between them.
func HasOrganizationMemberships ¶
func HasOrganizationMemberships() predicate.GithubAccount
HasOrganizationMemberships applies the HasEdge predicate on the "organization_memberships" edge.
func HasOrganizationMembershipsWith ¶
func HasOrganizationMembershipsWith(preds ...predicate.GithubOrganizationMember) predicate.GithubAccount
HasOrganizationMembershipsWith applies the HasEdge predicate on the "organization_memberships" edge with a given conditions (other predicates).
func HasOwner ¶
func HasOwner() predicate.GithubAccount
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.User) predicate.GithubAccount
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasRepositories ¶
func HasRepositories() predicate.GithubAccount
HasRepositories applies the HasEdge predicate on the "repositories" edge.
func HasRepositoriesWith ¶
func HasRepositoriesWith(preds ...predicate.Repository) predicate.GithubAccount
HasRepositoriesWith applies the HasEdge predicate on the "repositories" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.GithubAccount
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.GithubAccount
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.GithubAccount
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.GithubAccount
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.GithubAccount
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.GithubAccount
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.GithubAccount
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.GithubAccount
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.GithubAccount) predicate.GithubAccount
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.GithubAccount) predicate.GithubAccount
Or groups predicates with the OR operator between them.
func Username ¶
func Username(v string) predicate.GithubAccount
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
func UsernameContains(v string) predicate.GithubAccount
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
func UsernameContainsFold(v string) predicate.GithubAccount
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
func UsernameEQ(v string) predicate.GithubAccount
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
func UsernameEqualFold(v string) predicate.GithubAccount
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
func UsernameGT(v string) predicate.GithubAccount
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
func UsernameGTE(v string) predicate.GithubAccount
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
func UsernameHasPrefix(v string) predicate.GithubAccount
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
func UsernameHasSuffix(v string) predicate.GithubAccount
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
func UsernameIn(vs ...string) predicate.GithubAccount
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
func UsernameLT(v string) predicate.GithubAccount
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
func UsernameLTE(v string) predicate.GithubAccount
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
func UsernameNEQ(v string) predicate.GithubAccount
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
func UsernameNotIn(vs ...string) predicate.GithubAccount
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.