xxxdemo

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 xxxdemo type in the database.
	Label = "xxx_demo"
	// 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"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// Table holds the table name of the xxxdemo in the database.
	Table = "xxx_demos"
)

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
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus int16
	// 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 xxxdemo fields.

Functions

func And

func And(predicates ...predicate.XxxDemo) predicate.XxxDemo

And groups predicates with the AND operator between them.

func Code

func Code(v string) predicate.XxxDemo

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.XxxDemo

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.XxxDemo

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.XxxDemo

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.XxxDemo

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.XxxDemo

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.XxxDemo

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.XxxDemo

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.XxxDemo

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.XxxDemo

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.XxxDemo

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.XxxDemo

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.XxxDemo

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.XxxDemo

CodeNotIn applies the NotIn predicate on the "code" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.XxxDemo

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.XxxDemo

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.XxxDemo

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.XxxDemo

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.XxxDemo

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.XxxDemo

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.XxxDemo

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.XxxDemo

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.XxxDemo

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.XxxDemo

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.XxxDemo

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.XxxDemo

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.XxxDemo

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.XxxDemo

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.XxxDemo

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.XxxDemo

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

func ID

func ID(id string) predicate.XxxDemo

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.XxxDemo

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.XxxDemo

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.XxxDemo

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.XxxDemo

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.XxxDemo

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.XxxDemo

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsDel

func IsDel(v bool) predicate.XxxDemo

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

func IsDelEQ

func IsDelEQ(v bool) predicate.XxxDemo

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

func IsDelNEQ

func IsDelNEQ(v bool) predicate.XxxDemo

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

func Memo

func Memo(v string) predicate.XxxDemo

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

func MemoContains

func MemoContains(v string) predicate.XxxDemo

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

func MemoContainsFold

func MemoContainsFold(v string) predicate.XxxDemo

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

func MemoEQ

func MemoEQ(v string) predicate.XxxDemo

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

func MemoEqualFold

func MemoEqualFold(v string) predicate.XxxDemo

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

func MemoGT

func MemoGT(v string) predicate.XxxDemo

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

func MemoGTE

func MemoGTE(v string) predicate.XxxDemo

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

func MemoHasPrefix

func MemoHasPrefix(v string) predicate.XxxDemo

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

func MemoHasSuffix

func MemoHasSuffix(v string) predicate.XxxDemo

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

func MemoIn

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

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

func MemoLT

func MemoLT(v string) predicate.XxxDemo

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

func MemoLTE

func MemoLTE(v string) predicate.XxxDemo

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

func MemoNEQ

func MemoNEQ(v string) predicate.XxxDemo

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

func MemoNotIn

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

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

func Name

func Name(v string) predicate.XxxDemo

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

func NameContains

func NameContains(v string) predicate.XxxDemo

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

func NameContainsFold

func NameContainsFold(v string) predicate.XxxDemo

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

func NameEQ

func NameEQ(v string) predicate.XxxDemo

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

func NameEqualFold

func NameEqualFold(v string) predicate.XxxDemo

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

func NameGT

func NameGT(v string) predicate.XxxDemo

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

func NameGTE

func NameGTE(v string) predicate.XxxDemo

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.XxxDemo

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.XxxDemo

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.XxxDemo

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

func NameLTE

func NameLTE(v string) predicate.XxxDemo

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

func NameNEQ

func NameNEQ(v string) predicate.XxxDemo

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

func NameNotIn

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

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.XxxDemo) predicate.XxxDemo

Or groups predicates with the OR operator between them.

func Sort

func Sort(v int32) predicate.XxxDemo

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

func SortEQ

func SortEQ(v int32) predicate.XxxDemo

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

func SortGT

func SortGT(v int32) predicate.XxxDemo

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

func SortGTE

func SortGTE(v int32) predicate.XxxDemo

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

func SortIn

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

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

func SortLT

func SortLT(v int32) predicate.XxxDemo

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

func SortLTE

func SortLTE(v int32) predicate.XxxDemo

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

func SortNEQ

func SortNEQ(v int32) predicate.XxxDemo

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

func SortNotIn

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

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

func Status

func Status(v int16) predicate.XxxDemo

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

func StatusEQ

func StatusEQ(v int16) predicate.XxxDemo

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

func StatusGT

func StatusGT(v int16) predicate.XxxDemo

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

func StatusGTE

func StatusGTE(v int16) predicate.XxxDemo

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

func StatusIn

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

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

func StatusLT

func StatusLT(v int16) predicate.XxxDemo

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

func StatusLTE

func StatusLTE(v int16) predicate.XxxDemo

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

func StatusNEQ

func StatusNEQ(v int16) predicate.XxxDemo

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

func StatusNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.XxxDemo

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.XxxDemo

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.XxxDemo

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.XxxDemo

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.XxxDemo

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.XxxDemo

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.XxxDemo

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

func UpdatedAtNotIn

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

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