githubaccount

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

View Source
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"
View Source
var Columns = []string{
	FieldID,
	FieldUsername,
}

Columns holds all SQL columns for githubaccount fields.

View Source
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

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 ID

ID filters vertices based on their ID field.

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

Not applies the not operator on the given predicate.

func Or

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

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