Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GithubOrganizationMember) predicate.GithubOrganizationMember
- func HasAccount() predicate.GithubOrganizationMember
- func HasAccountWith(preds ...predicate.GithubAccount) predicate.GithubOrganizationMember
- func HasOrganization() predicate.GithubOrganizationMember
- func HasOrganizationWith(preds ...predicate.GithubOrganization) predicate.GithubOrganizationMember
- func ID(id int) predicate.GithubOrganizationMember
- func IDEQ(id int) predicate.GithubOrganizationMember
- func IDGT(id int) predicate.GithubOrganizationMember
- func IDGTE(id int) predicate.GithubOrganizationMember
- func IDIn(ids ...int) predicate.GithubOrganizationMember
- func IDLT(id int) predicate.GithubOrganizationMember
- func IDLTE(id int) predicate.GithubOrganizationMember
- func IDNEQ(id int) predicate.GithubOrganizationMember
- func IDNotIn(ids ...int) predicate.GithubOrganizationMember
- func Not(p predicate.GithubOrganizationMember) predicate.GithubOrganizationMember
- func Or(predicates ...predicate.GithubOrganizationMember) predicate.GithubOrganizationMember
- func RoleEQ(v Role) predicate.GithubOrganizationMember
- func RoleIn(vs ...Role) predicate.GithubOrganizationMember
- func RoleNEQ(v Role) predicate.GithubOrganizationMember
- func RoleNotIn(vs ...Role) predicate.GithubOrganizationMember
- func RoleValidator(r Role) error
- func ValidColumn(column string) bool
- type Role
Constants ¶
const ( // Label holds the string label denoting the githuborganizationmember type in the database. Label = "github_organization_member" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // Table holds the table name of the githuborganizationmember in the database. Table = "github_organization_members" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "github_organization_members" // OrganizationInverseTable is the table name for the GithubOrganization entity. // It exists in this package in order to avoid circular dependency with the "githuborganization" package. OrganizationInverseTable = "github_organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "github_organization_members" // AccountTable is the table that holds the account relation/edge. AccountTable = "github_organization_members" // AccountInverseTable is the table name for the GithubAccount entity. // It exists in this package in order to avoid circular dependency with the "githubaccount" package. AccountInverseTable = "github_accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "github_account_organization_memberships" )
const DefaultRole = RoleMember
RoleMember is the default value of the Role enum.
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, FieldRole, }
Columns holds all SQL columns for githuborganizationmember fields.
var ForeignKeys = []string{
"github_account_organization_memberships",
"github_organization_members",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "github_organization_members" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.GithubOrganizationMember) predicate.GithubOrganizationMember
And groups predicates with the AND operator between them.
func HasAccount ¶
func HasAccount() predicate.GithubOrganizationMember
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
func HasAccountWith(preds ...predicate.GithubAccount) predicate.GithubOrganizationMember
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func HasOrganization ¶
func HasOrganization() predicate.GithubOrganizationMember
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.GithubOrganization) predicate.GithubOrganizationMember
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func ID ¶
func ID(id int) predicate.GithubOrganizationMember
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.GithubOrganizationMember
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.GithubOrganizationMember
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.GithubOrganizationMember
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.GithubOrganizationMember
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.GithubOrganizationMember
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.GithubOrganizationMember
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.GithubOrganizationMember
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.GithubOrganizationMember
IDNotIn applies the NotIn predicate on the ID field.
func Or ¶
func Or(predicates ...predicate.GithubOrganizationMember) predicate.GithubOrganizationMember
Or groups predicates with the OR operator between them.
func RoleEQ ¶
func RoleEQ(v Role) predicate.GithubOrganizationMember
RoleEQ applies the EQ predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...Role) predicate.GithubOrganizationMember
RoleIn applies the In predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v Role) predicate.GithubOrganizationMember
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...Role) predicate.GithubOrganizationMember
RoleNotIn applies the NotIn predicate on the "role" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Role ¶
type Role string
Role defines the type for the "role" enum field.
func (Role) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Role) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.