Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Role) predicate.Role
- func HasResource() predicate.Role
- func HasResourceWith(preds ...predicate.Resource) predicate.Role
- func HasUser() predicate.Role
- func HasUserWith(preds ...predicate.User) predicate.Role
- func ID(id int) predicate.Role
- func IDEQ(id int) predicate.Role
- func IDGT(id int) predicate.Role
- func IDGTE(id int) predicate.Role
- func IDIn(ids ...int) predicate.Role
- func IDLT(id int) predicate.Role
- func IDLTE(id int) predicate.Role
- func IDNEQ(id int) predicate.Role
- func IDNotIn(ids ...int) predicate.Role
- func Not(p predicate.Role) predicate.Role
- func Or(predicates ...predicate.Role) predicate.Role
- func RoleName(v string) predicate.Role
- func RoleNameContains(v string) predicate.Role
- func RoleNameContainsFold(v string) predicate.Role
- func RoleNameEQ(v string) predicate.Role
- func RoleNameEqualFold(v string) predicate.Role
- func RoleNameGT(v string) predicate.Role
- func RoleNameGTE(v string) predicate.Role
- func RoleNameHasPrefix(v string) predicate.Role
- func RoleNameHasSuffix(v string) predicate.Role
- func RoleNameIn(vs ...string) predicate.Role
- func RoleNameLT(v string) predicate.Role
- func RoleNameLTE(v string) predicate.Role
- func RoleNameNEQ(v string) predicate.Role
- func RoleNameNotIn(vs ...string) predicate.Role
- func RoleValue(v string) predicate.Role
- func RoleValueContains(v string) predicate.Role
- func RoleValueContainsFold(v string) predicate.Role
- func RoleValueEQ(v string) predicate.Role
- func RoleValueEqualFold(v string) predicate.Role
- func RoleValueGT(v string) predicate.Role
- func RoleValueGTE(v string) predicate.Role
- func RoleValueHasPrefix(v string) predicate.Role
- func RoleValueHasSuffix(v string) predicate.Role
- func RoleValueIn(vs ...string) predicate.Role
- func RoleValueLT(v string) predicate.Role
- func RoleValueLTE(v string) predicate.Role
- func RoleValueNEQ(v string) predicate.Role
- func RoleValueNotIn(vs ...string) predicate.Role
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the role type in the database. Label = "role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRoleName holds the string denoting the role_name field in the database. FieldRoleName = "role_name" // FieldRoleValue holds the string denoting the role_value field in the database. FieldRoleValue = "role_value" // EdgeResource holds the string denoting the resource edge name in mutations. EdgeResource = "resource" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the role in the database. Table = "roles" // ResourceTable is the table that holds the resource relation/edge. The primary key declared below. ResourceTable = "role_resource" // ResourceInverseTable is the table name for the Resource entity. // It exists in this package in order to avoid circular dependency with the "resource" package. ResourceInverseTable = "resources" // UserTable is the table that holds the user relation/edge. The primary key declared below. UserTable = "user_role" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" )
Variables ¶
var ( // ResourcePrimaryKey and ResourceColumn2 are the table columns denoting the // primary key for the resource relation (M2M). ResourcePrimaryKey = []string{"role_id", "resource_id"} // UserPrimaryKey and UserColumn2 are the table columns denoting the // primary key for the user relation (M2M). UserPrimaryKey = []string{"user_id", "role_id"} )
var ( // RoleNameValidator is a validator for the "role_name" field. It is called by the builders before save. RoleNameValidator func(string) error // RoleValueValidator is a validator for the "role_value" field. It is called by the builders before save. RoleValueValidator func(string) error )
var Columns = []string{ FieldID, FieldRoleName, FieldRoleValue, }
Columns holds all SQL columns for role fields.
Functions ¶
func HasResource ¶
HasResource applies the HasEdge predicate on the "resource" edge.
func HasResourceWith ¶
HasResourceWith applies the HasEdge predicate on the "resource" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func RoleName ¶
RoleName applies equality check predicate on the "role_name" field. It's identical to RoleNameEQ.
func RoleNameContains ¶
RoleNameContains applies the Contains predicate on the "role_name" field.
func RoleNameContainsFold ¶
RoleNameContainsFold applies the ContainsFold predicate on the "role_name" field.
func RoleNameEQ ¶
RoleNameEQ applies the EQ predicate on the "role_name" field.
func RoleNameEqualFold ¶
RoleNameEqualFold applies the EqualFold predicate on the "role_name" field.
func RoleNameGT ¶
RoleNameGT applies the GT predicate on the "role_name" field.
func RoleNameGTE ¶
RoleNameGTE applies the GTE predicate on the "role_name" field.
func RoleNameHasPrefix ¶
RoleNameHasPrefix applies the HasPrefix predicate on the "role_name" field.
func RoleNameHasSuffix ¶
RoleNameHasSuffix applies the HasSuffix predicate on the "role_name" field.
func RoleNameIn ¶
RoleNameIn applies the In predicate on the "role_name" field.
func RoleNameLT ¶
RoleNameLT applies the LT predicate on the "role_name" field.
func RoleNameLTE ¶
RoleNameLTE applies the LTE predicate on the "role_name" field.
func RoleNameNEQ ¶
RoleNameNEQ applies the NEQ predicate on the "role_name" field.
func RoleNameNotIn ¶
RoleNameNotIn applies the NotIn predicate on the "role_name" field.
func RoleValue ¶
RoleValue applies equality check predicate on the "role_value" field. It's identical to RoleValueEQ.
func RoleValueContains ¶
RoleValueContains applies the Contains predicate on the "role_value" field.
func RoleValueContainsFold ¶
RoleValueContainsFold applies the ContainsFold predicate on the "role_value" field.
func RoleValueEQ ¶
RoleValueEQ applies the EQ predicate on the "role_value" field.
func RoleValueEqualFold ¶
RoleValueEqualFold applies the EqualFold predicate on the "role_value" field.
func RoleValueGT ¶
RoleValueGT applies the GT predicate on the "role_value" field.
func RoleValueGTE ¶
RoleValueGTE applies the GTE predicate on the "role_value" field.
func RoleValueHasPrefix ¶
RoleValueHasPrefix applies the HasPrefix predicate on the "role_value" field.
func RoleValueHasSuffix ¶
RoleValueHasSuffix applies the HasSuffix predicate on the "role_value" field.
func RoleValueIn ¶
RoleValueIn applies the In predicate on the "role_value" field.
func RoleValueLT ¶
RoleValueLT applies the LT predicate on the "role_value" field.
func RoleValueLTE ¶
RoleValueLTE applies the LTE predicate on the "role_value" field.
func RoleValueNEQ ¶
RoleValueNEQ applies the NEQ predicate on the "role_value" field.
func RoleValueNotIn ¶
RoleValueNotIn applies the NotIn predicate on the "role_value" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.