Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Role) predicate.Role
- func CreateTime(v time.Time) predicate.Role
- func CreateTimeEQ(v time.Time) predicate.Role
- func CreateTimeGT(v time.Time) predicate.Role
- func CreateTimeGTE(v time.Time) predicate.Role
- func CreateTimeIn(vs ...time.Time) predicate.Role
- func CreateTimeLT(v time.Time) predicate.Role
- func CreateTimeLTE(v time.Time) predicate.Role
- func CreateTimeNEQ(v time.Time) predicate.Role
- func CreateTimeNotIn(vs ...time.Time) predicate.Role
- func HasUsers() predicate.Role
- func HasUsersWith(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 Status(v string) predicate.Role
- func StatusContains(v string) predicate.Role
- func StatusContainsFold(v string) predicate.Role
- func StatusEQ(v string) predicate.Role
- func StatusEqualFold(v string) predicate.Role
- func StatusGT(v string) predicate.Role
- func StatusGTE(v string) predicate.Role
- func StatusHasPrefix(v string) predicate.Role
- func StatusHasSuffix(v string) predicate.Role
- func StatusIn(vs ...string) predicate.Role
- func StatusLT(v string) predicate.Role
- func StatusLTE(v string) predicate.Role
- func StatusNEQ(v string) predicate.Role
- func StatusNotIn(vs ...string) predicate.Role
- func UpdateTime(v time.Time) predicate.Role
- func UpdateTimeEQ(v time.Time) predicate.Role
- func UpdateTimeGT(v time.Time) predicate.Role
- func UpdateTimeGTE(v time.Time) predicate.Role
- func UpdateTimeIn(vs ...time.Time) predicate.Role
- func UpdateTimeIsNil() predicate.Role
- func UpdateTimeLT(v time.Time) predicate.Role
- func UpdateTimeLTE(v time.Time) predicate.Role
- func UpdateTimeNEQ(v time.Time) predicate.Role
- func UpdateTimeNotIn(vs ...time.Time) predicate.Role
- func UpdateTimeNotNil() 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 rolename field in the database. FieldRolename = "rolename" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // Table holds the table name of the role in the database. Table = "roles" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_roles" // 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" )
Variables ¶
var ( // RolenameValidator is a validator for the "rolename" field. It is called by the builders before save. RolenameValidator func(string) error // StatusValidator is a validator for the "status" field. It is called by the builders before save. StatusValidator func(string) error // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time )
var Columns = []string{ FieldID, FieldRolename, FieldStatus, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for role fields.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "role_id"} )
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func Rolename ¶
Rolename applies equality check predicate on the "rolename" field. It's identical to RolenameEQ.
func RolenameContains ¶
RolenameContains applies the Contains predicate on the "rolename" field.
func RolenameContainsFold ¶
RolenameContainsFold applies the ContainsFold predicate on the "rolename" field.
func RolenameEQ ¶
RolenameEQ applies the EQ predicate on the "rolename" field.
func RolenameEqualFold ¶
RolenameEqualFold applies the EqualFold predicate on the "rolename" field.
func RolenameGT ¶
RolenameGT applies the GT predicate on the "rolename" field.
func RolenameGTE ¶
RolenameGTE applies the GTE predicate on the "rolename" field.
func RolenameHasPrefix ¶
RolenameHasPrefix applies the HasPrefix predicate on the "rolename" field.
func RolenameHasSuffix ¶
RolenameHasSuffix applies the HasSuffix predicate on the "rolename" field.
func RolenameIn ¶
RolenameIn applies the In predicate on the "rolename" field.
func RolenameLT ¶
RolenameLT applies the LT predicate on the "rolename" field.
func RolenameLTE ¶
RolenameLTE applies the LTE predicate on the "rolename" field.
func RolenameNEQ ¶
RolenameNEQ applies the NEQ predicate on the "rolename" field.
func RolenameNotIn ¶
RolenameNotIn applies the NotIn predicate on the "rolename" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeIsNil ¶
UpdateTimeIsNil applies the IsNil predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UpdateTimeNotNil ¶
UpdateTimeNotNil applies the NotNil predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.