tleaf

package
v0.0.0-...-c30d74c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tleaf type in the database.
	Label = "tleaf"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBizTag holds the string denoting the biz_tag field in the database.
	FieldBizTag = "biz_tag"
	// FieldMaxID holds the string denoting the max_id field in the database.
	FieldMaxID = "max_id"
	// FieldStep holds the string denoting the step field in the database.
	FieldStep = "step"
	// FieldDesc holds the string denoting the desc field in the database.
	FieldDesc = "desc"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// 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"
	// Table holds the table name of the tleaf in the database.
	Table = "leaf"
)

Variables

View Source
var (
	// BizTagValidator is a validator for the "biz_tag" field. It is called by the builders before save.
	BizTagValidator func(string) error
	// DefaultMaxID holds the default value on creation for the "max_id" field.
	DefaultMaxID int64
	// DefaultStep holds the default value on creation for the "step" field.
	DefaultStep int64
	// DescValidator is a validator for the "desc" field. It is called by the builders before save.
	DescValidator func(string) error
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int32
)

Columns holds all SQL columns for tleaf fields.

Functions

func And

func And(predicates ...predicate.TLeaf) predicate.TLeaf

And groups predicates with the AND operator between them.

func BizTag

func BizTag(v string) predicate.TLeaf

BizTag applies equality check predicate on the "biz_tag" field. It's identical to BizTagEQ.

func BizTagContains

func BizTagContains(v string) predicate.TLeaf

BizTagContains applies the Contains predicate on the "biz_tag" field.

func BizTagContainsFold

func BizTagContainsFold(v string) predicate.TLeaf

BizTagContainsFold applies the ContainsFold predicate on the "biz_tag" field.

func BizTagEQ

func BizTagEQ(v string) predicate.TLeaf

BizTagEQ applies the EQ predicate on the "biz_tag" field.

func BizTagEqualFold

func BizTagEqualFold(v string) predicate.TLeaf

BizTagEqualFold applies the EqualFold predicate on the "biz_tag" field.

func BizTagGT

func BizTagGT(v string) predicate.TLeaf

BizTagGT applies the GT predicate on the "biz_tag" field.

func BizTagGTE

func BizTagGTE(v string) predicate.TLeaf

BizTagGTE applies the GTE predicate on the "biz_tag" field.

func BizTagHasPrefix

func BizTagHasPrefix(v string) predicate.TLeaf

BizTagHasPrefix applies the HasPrefix predicate on the "biz_tag" field.

func BizTagHasSuffix

func BizTagHasSuffix(v string) predicate.TLeaf

BizTagHasSuffix applies the HasSuffix predicate on the "biz_tag" field.

func BizTagIn

func BizTagIn(vs ...string) predicate.TLeaf

BizTagIn applies the In predicate on the "biz_tag" field.

func BizTagLT

func BizTagLT(v string) predicate.TLeaf

BizTagLT applies the LT predicate on the "biz_tag" field.

func BizTagLTE

func BizTagLTE(v string) predicate.TLeaf

BizTagLTE applies the LTE predicate on the "biz_tag" field.

func BizTagNEQ

func BizTagNEQ(v string) predicate.TLeaf

BizTagNEQ applies the NEQ predicate on the "biz_tag" field.

func BizTagNotIn

func BizTagNotIn(vs ...string) predicate.TLeaf

BizTagNotIn applies the NotIn predicate on the "biz_tag" field.

func CreatedAt

func CreatedAt(v int64) predicate.TLeaf

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

func CreatedAtEQ

func CreatedAtEQ(v int64) predicate.TLeaf

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

func CreatedAtGT

func CreatedAtGT(v int64) predicate.TLeaf

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

func CreatedAtGTE

func CreatedAtGTE(v int64) predicate.TLeaf

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

func CreatedAtIn

func CreatedAtIn(vs ...int64) predicate.TLeaf

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

func CreatedAtLT

func CreatedAtLT(v int64) predicate.TLeaf

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

func CreatedAtLTE

func CreatedAtLTE(v int64) predicate.TLeaf

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

func CreatedAtNEQ

func CreatedAtNEQ(v int64) predicate.TLeaf

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

func CreatedAtNotIn

func CreatedAtNotIn(vs ...int64) predicate.TLeaf

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

func Desc

func Desc(v string) predicate.TLeaf

Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.

func DescContains

func DescContains(v string) predicate.TLeaf

DescContains applies the Contains predicate on the "desc" field.

func DescContainsFold

func DescContainsFold(v string) predicate.TLeaf

DescContainsFold applies the ContainsFold predicate on the "desc" field.

func DescEQ

func DescEQ(v string) predicate.TLeaf

DescEQ applies the EQ predicate on the "desc" field.

func DescEqualFold

func DescEqualFold(v string) predicate.TLeaf

DescEqualFold applies the EqualFold predicate on the "desc" field.

func DescGT

func DescGT(v string) predicate.TLeaf

DescGT applies the GT predicate on the "desc" field.

func DescGTE

func DescGTE(v string) predicate.TLeaf

DescGTE applies the GTE predicate on the "desc" field.

func DescHasPrefix

func DescHasPrefix(v string) predicate.TLeaf

DescHasPrefix applies the HasPrefix predicate on the "desc" field.

func DescHasSuffix

func DescHasSuffix(v string) predicate.TLeaf

DescHasSuffix applies the HasSuffix predicate on the "desc" field.

func DescIn

func DescIn(vs ...string) predicate.TLeaf

DescIn applies the In predicate on the "desc" field.

func DescLT

func DescLT(v string) predicate.TLeaf

DescLT applies the LT predicate on the "desc" field.

func DescLTE

func DescLTE(v string) predicate.TLeaf

DescLTE applies the LTE predicate on the "desc" field.

func DescNEQ

func DescNEQ(v string) predicate.TLeaf

DescNEQ applies the NEQ predicate on the "desc" field.

func DescNotIn

func DescNotIn(vs ...string) predicate.TLeaf

DescNotIn applies the NotIn predicate on the "desc" field.

func ID

func ID(id int64) predicate.TLeaf

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.TLeaf

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.TLeaf

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.TLeaf

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.TLeaf

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.TLeaf

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.TLeaf

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.TLeaf

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.TLeaf

IDNotIn applies the NotIn predicate on the ID field.

func MaxID

func MaxID(v int64) predicate.TLeaf

MaxID applies equality check predicate on the "max_id" field. It's identical to MaxIDEQ.

func MaxIDEQ

func MaxIDEQ(v int64) predicate.TLeaf

MaxIDEQ applies the EQ predicate on the "max_id" field.

func MaxIDGT

func MaxIDGT(v int64) predicate.TLeaf

MaxIDGT applies the GT predicate on the "max_id" field.

func MaxIDGTE

func MaxIDGTE(v int64) predicate.TLeaf

MaxIDGTE applies the GTE predicate on the "max_id" field.

func MaxIDIn

func MaxIDIn(vs ...int64) predicate.TLeaf

MaxIDIn applies the In predicate on the "max_id" field.

func MaxIDLT

func MaxIDLT(v int64) predicate.TLeaf

MaxIDLT applies the LT predicate on the "max_id" field.

func MaxIDLTE

func MaxIDLTE(v int64) predicate.TLeaf

MaxIDLTE applies the LTE predicate on the "max_id" field.

func MaxIDNEQ

func MaxIDNEQ(v int64) predicate.TLeaf

MaxIDNEQ applies the NEQ predicate on the "max_id" field.

func MaxIDNotIn

func MaxIDNotIn(vs ...int64) predicate.TLeaf

MaxIDNotIn applies the NotIn predicate on the "max_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.TLeaf) predicate.TLeaf

Or groups predicates with the OR operator between them.

func Step

func Step(v int64) predicate.TLeaf

Step applies equality check predicate on the "step" field. It's identical to StepEQ.

func StepEQ

func StepEQ(v int64) predicate.TLeaf

StepEQ applies the EQ predicate on the "step" field.

func StepGT

func StepGT(v int64) predicate.TLeaf

StepGT applies the GT predicate on the "step" field.

func StepGTE

func StepGTE(v int64) predicate.TLeaf

StepGTE applies the GTE predicate on the "step" field.

func StepIn

func StepIn(vs ...int64) predicate.TLeaf

StepIn applies the In predicate on the "step" field.

func StepLT

func StepLT(v int64) predicate.TLeaf

StepLT applies the LT predicate on the "step" field.

func StepLTE

func StepLTE(v int64) predicate.TLeaf

StepLTE applies the LTE predicate on the "step" field.

func StepNEQ

func StepNEQ(v int64) predicate.TLeaf

StepNEQ applies the NEQ predicate on the "step" field.

func StepNotIn

func StepNotIn(vs ...int64) predicate.TLeaf

StepNotIn applies the NotIn predicate on the "step" field.

func UpdatedAt

func UpdatedAt(v int64) predicate.TLeaf

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

func UpdatedAtEQ

func UpdatedAtEQ(v int64) predicate.TLeaf

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

func UpdatedAtGT

func UpdatedAtGT(v int64) predicate.TLeaf

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

func UpdatedAtGTE

func UpdatedAtGTE(v int64) predicate.TLeaf

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

func UpdatedAtIn

func UpdatedAtIn(vs ...int64) predicate.TLeaf

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

func UpdatedAtLT

func UpdatedAtLT(v int64) predicate.TLeaf

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

func UpdatedAtLTE

func UpdatedAtLTE(v int64) predicate.TLeaf

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v int64) predicate.TLeaf

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...int64) predicate.TLeaf

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

func Version

func Version(v int32) predicate.TLeaf

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int32) predicate.TLeaf

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int32) predicate.TLeaf

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int32) predicate.TLeaf

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int32) predicate.TLeaf

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int32) predicate.TLeaf

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int32) predicate.TLeaf

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int32) predicate.TLeaf

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int32) predicate.TLeaf

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the TLeaf queries.

func ByBizTag

func ByBizTag(opts ...sql.OrderTermOption) OrderOption

ByBizTag orders the results by the biz_tag field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDesc

func ByDesc(opts ...sql.OrderTermOption) OrderOption

ByDesc orders the results by the desc field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByMaxID

func ByMaxID(opts ...sql.OrderTermOption) OrderOption

ByMaxID orders the results by the max_id field.

func ByStep

func ByStep(opts ...sql.OrderTermOption) OrderOption

ByStep orders the results by the step field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByVersion

func ByVersion(opts ...sql.OrderTermOption) OrderOption

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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