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 Hash(v string) predicate.Role
- func HashContains(v string) predicate.Role
- func HashContainsFold(v string) predicate.Role
- func HashEQ(v string) predicate.Role
- func HashEqualFold(v string) predicate.Role
- func HashGT(v string) predicate.Role
- func HashGTE(v string) predicate.Role
- func HashHasPrefix(v string) predicate.Role
- func HashHasSuffix(v string) predicate.Role
- func HashIn(vs ...string) predicate.Role
- func HashLT(v string) predicate.Role
- func HashLTE(v string) predicate.Role
- func HashNEQ(v string) predicate.Role
- func HashNotIn(vs ...string) 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 Title(v string) predicate.Role
- func TitleContains(v string) predicate.Role
- func TitleContainsFold(v string) predicate.Role
- func TitleEQ(v string) predicate.Role
- func TitleEqualFold(v string) predicate.Role
- func TitleGT(v string) predicate.Role
- func TitleGTE(v string) predicate.Role
- func TitleHasPrefix(v string) predicate.Role
- func TitleHasSuffix(v string) predicate.Role
- func TitleIn(vs ...string) predicate.Role
- func TitleLT(v string) predicate.Role
- func TitleLTE(v string) predicate.Role
- func TitleNEQ(v string) predicate.Role
- func TitleNotIn(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 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 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" // 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" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // 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 ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldTitle, FieldHash, }
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 HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" 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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.