role

package
v0.0.0-...-a7b145a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for role fields.

View Source
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 And

func And(predicates ...predicate.Role) predicate.Role

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Role

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Role

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Role

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Role

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Role

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Role

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Role

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Role

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Role

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasUsers

func HasUsers() predicate.Role

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Role

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Role

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Role

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Role

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Role

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Role

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Role

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Role

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Role

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Role

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Role) predicate.Role

Or groups predicates with the OR operator between them.

func Rolename

func Rolename(v string) predicate.Role

Rolename applies equality check predicate on the "rolename" field. It's identical to RolenameEQ.

func RolenameContains

func RolenameContains(v string) predicate.Role

RolenameContains applies the Contains predicate on the "rolename" field.

func RolenameContainsFold

func RolenameContainsFold(v string) predicate.Role

RolenameContainsFold applies the ContainsFold predicate on the "rolename" field.

func RolenameEQ

func RolenameEQ(v string) predicate.Role

RolenameEQ applies the EQ predicate on the "rolename" field.

func RolenameEqualFold

func RolenameEqualFold(v string) predicate.Role

RolenameEqualFold applies the EqualFold predicate on the "rolename" field.

func RolenameGT

func RolenameGT(v string) predicate.Role

RolenameGT applies the GT predicate on the "rolename" field.

func RolenameGTE

func RolenameGTE(v string) predicate.Role

RolenameGTE applies the GTE predicate on the "rolename" field.

func RolenameHasPrefix

func RolenameHasPrefix(v string) predicate.Role

RolenameHasPrefix applies the HasPrefix predicate on the "rolename" field.

func RolenameHasSuffix

func RolenameHasSuffix(v string) predicate.Role

RolenameHasSuffix applies the HasSuffix predicate on the "rolename" field.

func RolenameIn

func RolenameIn(vs ...string) predicate.Role

RolenameIn applies the In predicate on the "rolename" field.

func RolenameLT

func RolenameLT(v string) predicate.Role

RolenameLT applies the LT predicate on the "rolename" field.

func RolenameLTE

func RolenameLTE(v string) predicate.Role

RolenameLTE applies the LTE predicate on the "rolename" field.

func RolenameNEQ

func RolenameNEQ(v string) predicate.Role

RolenameNEQ applies the NEQ predicate on the "rolename" field.

func RolenameNotIn

func RolenameNotIn(vs ...string) predicate.Role

RolenameNotIn applies the NotIn predicate on the "rolename" field.

func Status

func Status(v string) predicate.Role

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Role

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Role

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Role

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Role

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Role

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Role

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Role

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Role

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Role

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Role

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Role

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Role

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Role

StatusNotIn applies the NotIn predicate on the "status" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Role

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Role

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Role

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Role

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Role

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeIsNil

func UpdateTimeIsNil() predicate.Role

UpdateTimeIsNil applies the IsNil predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Role

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Role

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Role

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Role

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UpdateTimeNotNil

func UpdateTimeNotNil() predicate.Role

UpdateTimeNotNil applies the NotNil predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL