Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Role) predicate.Role
- func Comment(v string) predicate.Role
- func CommentContains(v string) predicate.Role
- func CommentContainsFold(v string) predicate.Role
- func CommentEQ(v string) predicate.Role
- func CommentEqualFold(v string) predicate.Role
- func CommentGT(v string) predicate.Role
- func CommentGTE(v string) predicate.Role
- func CommentHasPrefix(v string) predicate.Role
- func CommentHasSuffix(v string) predicate.Role
- func CommentIn(vs ...string) predicate.Role
- func CommentIsNil() predicate.Role
- func CommentLT(v string) predicate.Role
- func CommentLTE(v string) predicate.Role
- func CommentNEQ(v string) predicate.Role
- func CommentNotIn(vs ...string) predicate.Role
- func CommentNotNil() 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 DeletedAt(v time.Time) predicate.Role
- func DeletedAtEQ(v time.Time) predicate.Role
- func DeletedAtGT(v time.Time) predicate.Role
- func DeletedAtGTE(v time.Time) predicate.Role
- func DeletedAtIn(vs ...time.Time) predicate.Role
- func DeletedAtIsNil() predicate.Role
- func DeletedAtLT(v time.Time) predicate.Role
- func DeletedAtLTE(v time.Time) predicate.Role
- func DeletedAtNEQ(v time.Time) predicate.Role
- func DeletedAtNotIn(vs ...time.Time) predicate.Role
- func DeletedAtNotNil() predicate.Role
- func HasMenu() predicate.Role
- func HasMenuWith(preds ...predicate.Menu) predicate.Role
- func HasUser() predicate.Role
- func HasUserWith(preds ...predicate.User) predicate.Role
- func ID(id int64) predicate.Role
- func IDEQ(id int64) predicate.Role
- func IDGT(id int64) predicate.Role
- func IDGTE(id int64) predicate.Role
- func IDIn(ids ...int64) predicate.Role
- func IDLT(id int64) predicate.Role
- func IDLTE(id int64) predicate.Role
- func IDNEQ(id int64) predicate.Role
- func IDNotIn(ids ...int64) predicate.Role
- func Key(v string) predicate.Role
- func KeyContains(v string) predicate.Role
- func KeyContainsFold(v string) predicate.Role
- func KeyEQ(v string) predicate.Role
- func KeyEqualFold(v string) predicate.Role
- func KeyGT(v string) predicate.Role
- func KeyGTE(v string) predicate.Role
- func KeyHasPrefix(v string) predicate.Role
- func KeyHasSuffix(v string) predicate.Role
- func KeyIn(vs ...string) predicate.Role
- func KeyLT(v string) predicate.Role
- func KeyLTE(v string) predicate.Role
- func KeyNEQ(v string) predicate.Role
- func KeyNotIn(vs ...string) 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 UpdatedAt(v time.Time) predicate.Role
- func UpdatedAtEQ(v time.Time) predicate.Role
- func UpdatedAtGT(v time.Time) predicate.Role
- func UpdatedAtGTE(v time.Time) predicate.Role
- func UpdatedAtIn(vs ...time.Time) predicate.Role
- func UpdatedAtLT(v time.Time) predicate.Role
- func UpdatedAtLTE(v time.Time) predicate.Role
- func UpdatedAtNEQ(v time.Time) predicate.Role
- func UpdatedAtNotIn(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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeMenu holds the string denoting the menu edge name in mutations. EdgeMenu = "menu" // Table holds the table name of the role in the database. Table = "role" // 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 = "user" // MenuTable is the table that holds the menu relation/edge. MenuTable = "menu" // MenuInverseTable is the table name for the Menu entity. // It exists in this package in order to avoid circular dependency with the "menu" package. MenuInverseTable = "menu" // MenuColumn is the table column denoting the menu relation/edge. MenuColumn = "role_menu" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field. UpdateDefaultDeletedAt func() time.Time // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int64) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldKey, FieldName, FieldComment, }
Columns holds all SQL columns for role fields.
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 Comment ¶
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEqualFold ¶
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGTE ¶
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIsNil ¶
CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentLTE ¶
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotNil ¶
CommentNotNil applies the NotNil predicate on the "comment" field.
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasMenuWith ¶
HasMenuWith applies the HasEdge predicate on the "menu" 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 KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.