Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgRole) predicate.OrgRole
- func HasOrgRoleUser() predicate.OrgRole
- func HasOrgRoleUserWith(preds ...predicate.OrgRoleUser) predicate.OrgRole
- func HasOrgUsers() predicate.OrgRole
- func HasOrgUsersWith(preds ...predicate.OrgUser) predicate.OrgRole
- func ID(id int) predicate.OrgRole
- func IDEQ(id int) predicate.OrgRole
- func IDGT(id int) predicate.OrgRole
- func IDGTE(id int) predicate.OrgRole
- func IDIn(ids ...int) predicate.OrgRole
- func IDLT(id int) predicate.OrgRole
- func IDLTE(id int) predicate.OrgRole
- func IDNEQ(id int) predicate.OrgRole
- func IDNotIn(ids ...int) predicate.OrgRole
- func KindEQ(v Kind) predicate.OrgRole
- func KindIn(vs ...Kind) predicate.OrgRole
- func KindNEQ(v Kind) predicate.OrgRole
- func KindNotIn(vs ...Kind) predicate.OrgRole
- func KindValidator(k Kind) error
- func Name(v string) predicate.OrgRole
- func NameContains(v string) predicate.OrgRole
- func NameContainsFold(v string) predicate.OrgRole
- func NameEQ(v string) predicate.OrgRole
- func NameEqualFold(v string) predicate.OrgRole
- func NameGT(v string) predicate.OrgRole
- func NameGTE(v string) predicate.OrgRole
- func NameHasPrefix(v string) predicate.OrgRole
- func NameHasSuffix(v string) predicate.OrgRole
- func NameIn(vs ...string) predicate.OrgRole
- func NameLT(v string) predicate.OrgRole
- func NameLTE(v string) predicate.OrgRole
- func NameNEQ(v string) predicate.OrgRole
- func NameNotIn(vs ...string) predicate.OrgRole
- func Not(p predicate.OrgRole) predicate.OrgRole
- func Or(predicates ...predicate.OrgRole) predicate.OrgRole
- func OrgID(v int) predicate.OrgRole
- func OrgIDEQ(v int) predicate.OrgRole
- func OrgIDGT(v int) predicate.OrgRole
- func OrgIDGTE(v int) predicate.OrgRole
- func OrgIDIn(vs ...int) predicate.OrgRole
- func OrgIDIsNil() predicate.OrgRole
- func OrgIDLT(v int) predicate.OrgRole
- func OrgIDLTE(v int) predicate.OrgRole
- func OrgIDNEQ(v int) predicate.OrgRole
- func OrgIDNotIn(vs ...int) predicate.OrgRole
- func OrgIDNotNil() predicate.OrgRole
- func ValidColumn(column string) bool
- type Kind
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrgID(opts ...sql.OrderTermOption) OrderOption
- func ByOrgRoleUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgRoleUserCount(opts ...sql.OrderTermOption) OrderOption
- func ByOrgUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the orgrole type in the database. Label = "org_role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOrgID holds the string denoting the org_id field in the database. FieldOrgID = "org_id" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeOrgUsers holds the string denoting the org_users edge name in mutations. EdgeOrgUsers = "org_users" // EdgeOrgRoleUser holds the string denoting the org_role_user edge name in mutations. EdgeOrgRoleUser = "org_role_user" // Table holds the table name of the orgrole in the database. Table = "org_role" // OrgUsersTable is the table that holds the org_users relation/edge. The primary key declared below. OrgUsersTable = "org_role_user" // OrgUsersInverseTable is the table name for the OrgUser entity. // It exists in this package in order to avoid circular dependency with the "orguser" package. OrgUsersInverseTable = "org_user" // OrgRoleUserTable is the table that holds the org_role_user relation/edge. OrgRoleUserTable = "org_role_user" // OrgRoleUserInverseTable is the table name for the OrgRoleUser entity. // It exists in this package in order to avoid circular dependency with the "orgroleuser" package. OrgRoleUserInverseTable = "org_role_user" // OrgRoleUserColumn is the table column denoting the org_role_user relation/edge. OrgRoleUserColumn = "org_role_id" )
Variables ¶
var Columns = []string{ FieldID, FieldOrgID, FieldKind, FieldName, }
Columns holds all SQL columns for orgrole fields.
var ( // OrgUsersPrimaryKey and OrgUsersColumn2 are the table columns denoting the // primary key for the org_users relation (M2M). OrgUsersPrimaryKey = []string{"org_role_id", "org_user_id"} )
Functions ¶
func HasOrgRoleUser ¶
HasOrgRoleUser applies the HasEdge predicate on the "org_role_user" edge.
func HasOrgRoleUserWith ¶
func HasOrgRoleUserWith(preds ...predicate.OrgRoleUser) predicate.OrgRole
HasOrgRoleUserWith applies the HasEdge predicate on the "org_role_user" edge with a given conditions (other predicates).
func HasOrgUsers ¶
HasOrgUsers applies the HasEdge predicate on the "org_users" edge.
func HasOrgUsersWith ¶
HasOrgUsersWith applies the HasEdge predicate on the "org_users" edge with a given conditions (other predicates).
func KindValidator ¶
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OrgID ¶
OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.
func OrgIDIsNil ¶
OrgIDIsNil applies the IsNil predicate on the "org_id" field.
func OrgIDNotIn ¶
OrgIDNotIn applies the NotIn predicate on the "org_id" field.
func OrgIDNotNil ¶
OrgIDNotNil applies the NotNil predicate on the "org_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Kind ¶
type Kind string
Kind defines the type for the "kind" enum field.
func (Kind) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Kind) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
OrderOption defines the ordering options for the OrgRole queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrgID ¶
func ByOrgID(opts ...sql.OrderTermOption) OrderOption
ByOrgID orders the results by the org_id field.
func ByOrgRoleUser ¶
func ByOrgRoleUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrgRoleUser orders the results by org_role_user terms.
func ByOrgRoleUserCount ¶
func ByOrgRoleUserCount(opts ...sql.OrderTermOption) OrderOption
ByOrgRoleUserCount orders the results by org_role_user count.
func ByOrgUsers ¶
func ByOrgUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrgUsers orders the results by org_users terms.
func ByOrgUsersCount ¶
func ByOrgUsersCount(opts ...sql.OrderTermOption) OrderOption
ByOrgUsersCount orders the results by org_users count.