sysrole

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sysrole type in the database.
	Label = "sys_role"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIsDel holds the string denoting the is_del field in the database.
	FieldIsDel = "is_del"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// FieldMemo holds the string denoting the memo field in the database.
	FieldMemo = "memo"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "crtd_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "uptd_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "dltd_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// Table holds the table name of the sysrole in the database.
	Table = "sys_roles"
)

Variables

View Source
var (
	// DefaultIsDel holds the default value on creation for the "is_del" field.
	DefaultIsDel bool
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus int16
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort int32
	// DefaultMemo holds the default value on creation for the "memo" field.
	DefaultMemo string
	// MemoValidator is a validator for the "memo" field. It is called by the builders before save.
	MemoValidator func(string) error
	// 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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for sysrole fields.

Functions

func And

func And(predicates ...predicate.SysRole) predicate.SysRole

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.SysRole

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SysRole

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SysRole

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SysRole

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.SysRole

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SysRole

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SysRole

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SysRole

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.SysRole

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.SysRole

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.SysRole

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.SysRole

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.SysRole

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.SysRole

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.SysRole

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.SysRole

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.SysRole

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.SysRole

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.SysRole

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.SysRole

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func ID

func ID(id string) predicate.SysRole

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.SysRole

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.SysRole

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.SysRole

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.SysRole

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.SysRole

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.SysRole

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.SysRole

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.SysRole

IDNotIn applies the NotIn predicate on the ID field.

func IsDel

func IsDel(v bool) predicate.SysRole

IsDel applies equality check predicate on the "is_del" field. It's identical to IsDelEQ.

func IsDelEQ

func IsDelEQ(v bool) predicate.SysRole

IsDelEQ applies the EQ predicate on the "is_del" field.

func IsDelNEQ

func IsDelNEQ(v bool) predicate.SysRole

IsDelNEQ applies the NEQ predicate on the "is_del" field.

func Memo

func Memo(v string) predicate.SysRole

Memo applies equality check predicate on the "memo" field. It's identical to MemoEQ.

func MemoContains

func MemoContains(v string) predicate.SysRole

MemoContains applies the Contains predicate on the "memo" field.

func MemoContainsFold

func MemoContainsFold(v string) predicate.SysRole

MemoContainsFold applies the ContainsFold predicate on the "memo" field.

func MemoEQ

func MemoEQ(v string) predicate.SysRole

MemoEQ applies the EQ predicate on the "memo" field.

func MemoEqualFold

func MemoEqualFold(v string) predicate.SysRole

MemoEqualFold applies the EqualFold predicate on the "memo" field.

func MemoGT

func MemoGT(v string) predicate.SysRole

MemoGT applies the GT predicate on the "memo" field.

func MemoGTE

func MemoGTE(v string) predicate.SysRole

MemoGTE applies the GTE predicate on the "memo" field.

func MemoHasPrefix

func MemoHasPrefix(v string) predicate.SysRole

MemoHasPrefix applies the HasPrefix predicate on the "memo" field.

func MemoHasSuffix

func MemoHasSuffix(v string) predicate.SysRole

MemoHasSuffix applies the HasSuffix predicate on the "memo" field.

func MemoIn

func MemoIn(vs ...string) predicate.SysRole

MemoIn applies the In predicate on the "memo" field.

func MemoLT

func MemoLT(v string) predicate.SysRole

MemoLT applies the LT predicate on the "memo" field.

func MemoLTE

func MemoLTE(v string) predicate.SysRole

MemoLTE applies the LTE predicate on the "memo" field.

func MemoNEQ

func MemoNEQ(v string) predicate.SysRole

MemoNEQ applies the NEQ predicate on the "memo" field.

func MemoNotIn

func MemoNotIn(vs ...string) predicate.SysRole

MemoNotIn applies the NotIn predicate on the "memo" field.

func Name

func Name(v string) predicate.SysRole

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.SysRole

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.SysRole

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.SysRole

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.SysRole

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.SysRole

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.SysRole

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.SysRole

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.SysRole

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.SysRole

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.SysRole

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.SysRole

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.SysRole

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.SysRole

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SysRole) predicate.SysRole

Or groups predicates with the OR operator between them.

func Sort

func Sort(v int32) predicate.SysRole

Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.

func SortEQ

func SortEQ(v int32) predicate.SysRole

SortEQ applies the EQ predicate on the "sort" field.

func SortGT

func SortGT(v int32) predicate.SysRole

SortGT applies the GT predicate on the "sort" field.

func SortGTE

func SortGTE(v int32) predicate.SysRole

SortGTE applies the GTE predicate on the "sort" field.

func SortIn

func SortIn(vs ...int32) predicate.SysRole

SortIn applies the In predicate on the "sort" field.

func SortLT

func SortLT(v int32) predicate.SysRole

SortLT applies the LT predicate on the "sort" field.

func SortLTE

func SortLTE(v int32) predicate.SysRole

SortLTE applies the LTE predicate on the "sort" field.

func SortNEQ

func SortNEQ(v int32) predicate.SysRole

SortNEQ applies the NEQ predicate on the "sort" field.

func SortNotIn

func SortNotIn(vs ...int32) predicate.SysRole

SortNotIn applies the NotIn predicate on the "sort" field.

func Status

func Status(v int16) predicate.SysRole

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

func StatusEQ

func StatusEQ(v int16) predicate.SysRole

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

func StatusGT

func StatusGT(v int16) predicate.SysRole

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

func StatusGTE

func StatusGTE(v int16) predicate.SysRole

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

func StatusIn

func StatusIn(vs ...int16) predicate.SysRole

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

func StatusLT

func StatusLT(v int16) predicate.SysRole

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

func StatusLTE

func StatusLTE(v int16) predicate.SysRole

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

func StatusNEQ

func StatusNEQ(v int16) predicate.SysRole

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

func StatusNotIn

func StatusNotIn(vs ...int16) predicate.SysRole

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.SysRole

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.SysRole

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.SysRole

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.SysRole

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.SysRole

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.SysRole

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.SysRole

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.SysRole

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.SysRole

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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