sysdict

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 sysdict type in the database.
	Label = "sys_dict"
	// 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"
	// FieldMemo holds the string denoting the memo field in the database.
	FieldMemo = "memo"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// 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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldNameCn holds the string denoting the name_cn field in the database.
	FieldNameCn = "name_cn"
	// FieldNameEn holds the string denoting the name_en field in the database.
	FieldNameEn = "name_en"
	// Table holds the table name of the sysdict in the database.
	Table = "sys_dicts"
)

Variables

View Source
var (
	// DefaultIsDel holds the default value on creation for the "is_del" field.
	DefaultIsDel bool
	// 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
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort int32
	// 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
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus int16
	// NameCnValidator is a validator for the "name_cn" field. It is called by the builders before save.
	NameCnValidator func(string) error
	// NameEnValidator is a validator for the "name_en" field. It is called by the builders before save.
	NameEnValidator 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 sysdict fields.

Functions

func And

func And(predicates ...predicate.SysDict) predicate.SysDict

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.SysDict

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SysDict

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SysDict

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SysDict

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SysDict

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SysDict

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SysDict

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.SysDict

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.SysDict

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.SysDict

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.SysDict

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.SysDict

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.SysDict

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.SysDict

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.SysDict

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.SysDict

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

func ID

func ID(id string) predicate.SysDict

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.SysDict

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.SysDict

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.SysDict

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.SysDict

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.SysDict

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.SysDict

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsDel

func IsDel(v bool) predicate.SysDict

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

func IsDelEQ

func IsDelEQ(v bool) predicate.SysDict

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

func IsDelNEQ

func IsDelNEQ(v bool) predicate.SysDict

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

func Memo

func Memo(v string) predicate.SysDict

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

func MemoContains

func MemoContains(v string) predicate.SysDict

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

func MemoContainsFold

func MemoContainsFold(v string) predicate.SysDict

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

func MemoEQ

func MemoEQ(v string) predicate.SysDict

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

func MemoEqualFold

func MemoEqualFold(v string) predicate.SysDict

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

func MemoGT

func MemoGT(v string) predicate.SysDict

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

func MemoGTE

func MemoGTE(v string) predicate.SysDict

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

func MemoHasPrefix

func MemoHasPrefix(v string) predicate.SysDict

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

func MemoHasSuffix

func MemoHasSuffix(v string) predicate.SysDict

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

func MemoIn

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

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

func MemoLT

func MemoLT(v string) predicate.SysDict

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

func MemoLTE

func MemoLTE(v string) predicate.SysDict

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

func MemoNEQ

func MemoNEQ(v string) predicate.SysDict

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

func MemoNotIn

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

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

func NameCn

func NameCn(v string) predicate.SysDict

NameCn applies equality check predicate on the "name_cn" field. It's identical to NameCnEQ.

func NameCnContains

func NameCnContains(v string) predicate.SysDict

NameCnContains applies the Contains predicate on the "name_cn" field.

func NameCnContainsFold

func NameCnContainsFold(v string) predicate.SysDict

NameCnContainsFold applies the ContainsFold predicate on the "name_cn" field.

func NameCnEQ

func NameCnEQ(v string) predicate.SysDict

NameCnEQ applies the EQ predicate on the "name_cn" field.

func NameCnEqualFold

func NameCnEqualFold(v string) predicate.SysDict

NameCnEqualFold applies the EqualFold predicate on the "name_cn" field.

func NameCnGT

func NameCnGT(v string) predicate.SysDict

NameCnGT applies the GT predicate on the "name_cn" field.

func NameCnGTE

func NameCnGTE(v string) predicate.SysDict

NameCnGTE applies the GTE predicate on the "name_cn" field.

func NameCnHasPrefix

func NameCnHasPrefix(v string) predicate.SysDict

NameCnHasPrefix applies the HasPrefix predicate on the "name_cn" field.

func NameCnHasSuffix

func NameCnHasSuffix(v string) predicate.SysDict

NameCnHasSuffix applies the HasSuffix predicate on the "name_cn" field.

func NameCnIn

func NameCnIn(vs ...string) predicate.SysDict

NameCnIn applies the In predicate on the "name_cn" field.

func NameCnLT

func NameCnLT(v string) predicate.SysDict

NameCnLT applies the LT predicate on the "name_cn" field.

func NameCnLTE

func NameCnLTE(v string) predicate.SysDict

NameCnLTE applies the LTE predicate on the "name_cn" field.

func NameCnNEQ

func NameCnNEQ(v string) predicate.SysDict

NameCnNEQ applies the NEQ predicate on the "name_cn" field.

func NameCnNotIn

func NameCnNotIn(vs ...string) predicate.SysDict

NameCnNotIn applies the NotIn predicate on the "name_cn" field.

func NameEn

func NameEn(v string) predicate.SysDict

NameEn applies equality check predicate on the "name_en" field. It's identical to NameEnEQ.

func NameEnContains

func NameEnContains(v string) predicate.SysDict

NameEnContains applies the Contains predicate on the "name_en" field.

func NameEnContainsFold

func NameEnContainsFold(v string) predicate.SysDict

NameEnContainsFold applies the ContainsFold predicate on the "name_en" field.

func NameEnEQ

func NameEnEQ(v string) predicate.SysDict

NameEnEQ applies the EQ predicate on the "name_en" field.

func NameEnEqualFold

func NameEnEqualFold(v string) predicate.SysDict

NameEnEqualFold applies the EqualFold predicate on the "name_en" field.

func NameEnGT

func NameEnGT(v string) predicate.SysDict

NameEnGT applies the GT predicate on the "name_en" field.

func NameEnGTE

func NameEnGTE(v string) predicate.SysDict

NameEnGTE applies the GTE predicate on the "name_en" field.

func NameEnHasPrefix

func NameEnHasPrefix(v string) predicate.SysDict

NameEnHasPrefix applies the HasPrefix predicate on the "name_en" field.

func NameEnHasSuffix

func NameEnHasSuffix(v string) predicate.SysDict

NameEnHasSuffix applies the HasSuffix predicate on the "name_en" field.

func NameEnIn

func NameEnIn(vs ...string) predicate.SysDict

NameEnIn applies the In predicate on the "name_en" field.

func NameEnLT

func NameEnLT(v string) predicate.SysDict

NameEnLT applies the LT predicate on the "name_en" field.

func NameEnLTE

func NameEnLTE(v string) predicate.SysDict

NameEnLTE applies the LTE predicate on the "name_en" field.

func NameEnNEQ

func NameEnNEQ(v string) predicate.SysDict

NameEnNEQ applies the NEQ predicate on the "name_en" field.

func NameEnNotIn

func NameEnNotIn(vs ...string) predicate.SysDict

NameEnNotIn applies the NotIn predicate on the "name_en" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SysDict) predicate.SysDict

Or groups predicates with the OR operator between them.

func Sort

func Sort(v int32) predicate.SysDict

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

func SortEQ

func SortEQ(v int32) predicate.SysDict

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

func SortGT

func SortGT(v int32) predicate.SysDict

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

func SortGTE

func SortGTE(v int32) predicate.SysDict

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

func SortIn

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

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

func SortLT

func SortLT(v int32) predicate.SysDict

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

func SortLTE

func SortLTE(v int32) predicate.SysDict

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

func SortNEQ

func SortNEQ(v int32) predicate.SysDict

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

func SortNotIn

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

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

func Status

func Status(v int16) predicate.SysDict

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

func StatusEQ

func StatusEQ(v int16) predicate.SysDict

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

func StatusGT

func StatusGT(v int16) predicate.SysDict

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

func StatusGTE

func StatusGTE(v int16) predicate.SysDict

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

func StatusIn

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

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

func StatusLT

func StatusLT(v int16) predicate.SysDict

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

func StatusLTE

func StatusLTE(v int16) predicate.SysDict

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

func StatusNEQ

func StatusNEQ(v int16) predicate.SysDict

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

func StatusNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.SysDict

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.SysDict

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.SysDict

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.SysDict

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.SysDict

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.SysDict

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.SysDict

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

func UpdatedAtNotIn

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

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