Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Group) predicate.Group
- func HasAccessTokens() predicate.Group
- func HasAccessTokensWith(preds ...predicate.AccessToken) predicate.Group
- func HasCodes() predicate.Group
- func HasCodesWith(preds ...predicate.Code) predicate.Group
- func HasUsers() predicate.Group
- func HasUsersWith(preds ...predicate.User) predicate.Group
- func ID(id uuid.UUID) predicate.Group
- func IDEQ(id uuid.UUID) predicate.Group
- func IDGT(id uuid.UUID) predicate.Group
- func IDGTE(id uuid.UUID) predicate.Group
- func IDIn(ids ...uuid.UUID) predicate.Group
- func IDLT(id uuid.UUID) predicate.Group
- func IDLTE(id uuid.UUID) predicate.Group
- func IDNEQ(id uuid.UUID) predicate.Group
- func IDNotIn(ids ...uuid.UUID) predicate.Group
- func Name(v string) predicate.Group
- func NameContains(v string) predicate.Group
- func NameContainsFold(v string) predicate.Group
- func NameEQ(v string) predicate.Group
- func NameEqualFold(v string) predicate.Group
- func NameGT(v string) predicate.Group
- func NameGTE(v string) predicate.Group
- func NameHasPrefix(v string) predicate.Group
- func NameHasSuffix(v string) predicate.Group
- func NameIn(vs ...string) predicate.Group
- func NameLT(v string) predicate.Group
- func NameLTE(v string) predicate.Group
- func NameNEQ(v string) predicate.Group
- func NameNotIn(vs ...string) predicate.Group
- func Not(p predicate.Group) predicate.Group
- func Or(predicates ...predicate.Group) predicate.Group
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAccessTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByCodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCodesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the group type in the database. Label = "group" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeCodes holds the string denoting the codes edge name in mutations. EdgeCodes = "codes" // EdgeAccessTokens holds the string denoting the access_tokens edge name in mutations. EdgeAccessTokens = "access_tokens" // Table holds the table name of the group in the database. Table = "groups" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_groups" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // CodesTable is the table that holds the codes relation/edge. The primary key declared below. CodesTable = "group_codes" // CodesInverseTable is the table name for the Code entity. // It exists in this package in order to avoid circular dependency with the "code" package. CodesInverseTable = "codes" // AccessTokensTable is the table that holds the access_tokens relation/edge. The primary key declared below. AccessTokensTable = "group_access_tokens" // AccessTokensInverseTable is the table name for the AccessToken entity. // It exists in this package in order to avoid circular dependency with the "accesstoken" package. AccessTokensInverseTable = "access_tokens" )
Variables ¶
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "group_id"} // CodesPrimaryKey and CodesColumn2 are the table columns denoting the // primary key for the codes relation (M2M). CodesPrimaryKey = []string{"group_id", "code_id"} // AccessTokensPrimaryKey and AccessTokensColumn2 are the table columns denoting the // primary key for the access_tokens relation (M2M). AccessTokensPrimaryKey = []string{"group_id", "access_token_id"} )
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for group fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func HasAccessTokens ¶
HasAccessTokens applies the HasEdge predicate on the "access_tokens" edge.
func HasAccessTokensWith ¶
func HasAccessTokensWith(preds ...predicate.AccessToken) predicate.Group
HasAccessTokensWith applies the HasEdge predicate on the "access_tokens" edge with a given conditions (other predicates).
func HasCodesWith ¶
HasCodesWith applies the HasEdge predicate on the "codes" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Group queries.
func ByAccessTokens ¶
func ByAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAccessTokens orders the results by access_tokens terms.
func ByAccessTokensCount ¶
func ByAccessTokensCount(opts ...sql.OrderTermOption) OrderOption
ByAccessTokensCount orders the results by access_tokens count.
func ByCodes ¶
func ByCodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCodes orders the results by codes terms.
func ByCodesCount ¶
func ByCodesCount(opts ...sql.OrderTermOption) OrderOption
ByCodesCount orders the results by codes count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.