Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Role) predicate.Role
- func CreatedAt(v time.Time) predicate.Role
- func CreatedAtEQ(v time.Time) predicate.Role
- func CreatedAtGT(v time.Time) predicate.Role
- func CreatedAtGTE(v time.Time) predicate.Role
- func CreatedAtIn(vs ...time.Time) predicate.Role
- func CreatedAtLT(v time.Time) predicate.Role
- func CreatedAtLTE(v time.Time) predicate.Role
- func CreatedAtNEQ(v time.Time) predicate.Role
- func CreatedAtNotIn(vs ...time.Time) predicate.Role
- func HasRolesUsers() predicate.Role
- func HasRolesUsersWith(preds ...predicate.RoleUser) 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 Name(v string) predicate.Role
- func NameContains(v string) predicate.Role
- func NameContainsFold(v string) predicate.Role
- func NameEQ(v string) predicate.Role
- func NameEqualFold(v string) predicate.Role
- func NameGT(v string) predicate.Role
- func NameGTE(v string) predicate.Role
- func NameHasPrefix(v string) predicate.Role
- func NameHasSuffix(v string) predicate.Role
- func NameIn(vs ...string) predicate.Role
- func NameLT(v string) predicate.Role
- func NameLTE(v string) predicate.Role
- func NameNEQ(v string) predicate.Role
- func NameNotIn(vs ...string) predicate.Role
- func Not(p predicate.Role) predicate.Role
- func Or(predicates ...predicate.Role) 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeRolesUsers holds the string denoting the roles_users edge name in mutations. EdgeRolesUsers = "roles_users" // Table holds the table name of the role in the database. Table = "roles" // UserTable is the table that holds the user relation/edge. The primary key declared below. UserTable = "role_users" // 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" // RolesUsersTable is the table that holds the roles_users relation/edge. RolesUsersTable = "role_users" // RolesUsersInverseTable is the table name for the RoleUser entity. // It exists in this package in order to avoid circular dependency with the "roleuser" package. RolesUsersInverseTable = "role_users" // RolesUsersColumn is the table column denoting the roles_users relation/edge. RolesUsersColumn = "role_id" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldCreatedAt, }
Columns holds all SQL columns for role fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var ( // UserPrimaryKey and UserColumn2 are the table columns denoting the // primary key for the user relation (M2M). UserPrimaryKey = []string{"user_id", "role_id"} )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasRolesUsers ¶
HasRolesUsers applies the HasEdge predicate on the "roles_users" edge.
func HasRolesUsersWith ¶
HasRolesUsersWith applies the HasEdge predicate on the "roles_users" 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 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 ¶
This section is empty.