Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TLeaf) predicate.TLeaf
- func BizTag(v string) predicate.TLeaf
- func BizTagContains(v string) predicate.TLeaf
- func BizTagContainsFold(v string) predicate.TLeaf
- func BizTagEQ(v string) predicate.TLeaf
- func BizTagEqualFold(v string) predicate.TLeaf
- func BizTagGT(v string) predicate.TLeaf
- func BizTagGTE(v string) predicate.TLeaf
- func BizTagHasPrefix(v string) predicate.TLeaf
- func BizTagHasSuffix(v string) predicate.TLeaf
- func BizTagIn(vs ...string) predicate.TLeaf
- func BizTagLT(v string) predicate.TLeaf
- func BizTagLTE(v string) predicate.TLeaf
- func BizTagNEQ(v string) predicate.TLeaf
- func BizTagNotIn(vs ...string) predicate.TLeaf
- func CreatedAt(v int64) predicate.TLeaf
- func CreatedAtEQ(v int64) predicate.TLeaf
- func CreatedAtGT(v int64) predicate.TLeaf
- func CreatedAtGTE(v int64) predicate.TLeaf
- func CreatedAtIn(vs ...int64) predicate.TLeaf
- func CreatedAtLT(v int64) predicate.TLeaf
- func CreatedAtLTE(v int64) predicate.TLeaf
- func CreatedAtNEQ(v int64) predicate.TLeaf
- func CreatedAtNotIn(vs ...int64) predicate.TLeaf
- func Desc(v string) predicate.TLeaf
- func DescContains(v string) predicate.TLeaf
- func DescContainsFold(v string) predicate.TLeaf
- func DescEQ(v string) predicate.TLeaf
- func DescEqualFold(v string) predicate.TLeaf
- func DescGT(v string) predicate.TLeaf
- func DescGTE(v string) predicate.TLeaf
- func DescHasPrefix(v string) predicate.TLeaf
- func DescHasSuffix(v string) predicate.TLeaf
- func DescIn(vs ...string) predicate.TLeaf
- func DescLT(v string) predicate.TLeaf
- func DescLTE(v string) predicate.TLeaf
- func DescNEQ(v string) predicate.TLeaf
- func DescNotIn(vs ...string) predicate.TLeaf
- func ID(id int64) predicate.TLeaf
- func IDEQ(id int64) predicate.TLeaf
- func IDGT(id int64) predicate.TLeaf
- func IDGTE(id int64) predicate.TLeaf
- func IDIn(ids ...int64) predicate.TLeaf
- func IDLT(id int64) predicate.TLeaf
- func IDLTE(id int64) predicate.TLeaf
- func IDNEQ(id int64) predicate.TLeaf
- func IDNotIn(ids ...int64) predicate.TLeaf
- func MaxID(v int64) predicate.TLeaf
- func MaxIDEQ(v int64) predicate.TLeaf
- func MaxIDGT(v int64) predicate.TLeaf
- func MaxIDGTE(v int64) predicate.TLeaf
- func MaxIDIn(vs ...int64) predicate.TLeaf
- func MaxIDLT(v int64) predicate.TLeaf
- func MaxIDLTE(v int64) predicate.TLeaf
- func MaxIDNEQ(v int64) predicate.TLeaf
- func MaxIDNotIn(vs ...int64) predicate.TLeaf
- func Not(p predicate.TLeaf) predicate.TLeaf
- func Or(predicates ...predicate.TLeaf) predicate.TLeaf
- func Step(v int64) predicate.TLeaf
- func StepEQ(v int64) predicate.TLeaf
- func StepGT(v int64) predicate.TLeaf
- func StepGTE(v int64) predicate.TLeaf
- func StepIn(vs ...int64) predicate.TLeaf
- func StepLT(v int64) predicate.TLeaf
- func StepLTE(v int64) predicate.TLeaf
- func StepNEQ(v int64) predicate.TLeaf
- func StepNotIn(vs ...int64) predicate.TLeaf
- func UpdatedAt(v int64) predicate.TLeaf
- func UpdatedAtEQ(v int64) predicate.TLeaf
- func UpdatedAtGT(v int64) predicate.TLeaf
- func UpdatedAtGTE(v int64) predicate.TLeaf
- func UpdatedAtIn(vs ...int64) predicate.TLeaf
- func UpdatedAtLT(v int64) predicate.TLeaf
- func UpdatedAtLTE(v int64) predicate.TLeaf
- func UpdatedAtNEQ(v int64) predicate.TLeaf
- func UpdatedAtNotIn(vs ...int64) predicate.TLeaf
- func ValidColumn(column string) bool
- func Version(v int32) predicate.TLeaf
- func VersionEQ(v int32) predicate.TLeaf
- func VersionGT(v int32) predicate.TLeaf
- func VersionGTE(v int32) predicate.TLeaf
- func VersionIn(vs ...int32) predicate.TLeaf
- func VersionLT(v int32) predicate.TLeaf
- func VersionLTE(v int32) predicate.TLeaf
- func VersionNEQ(v int32) predicate.TLeaf
- func VersionNotIn(vs ...int32) predicate.TLeaf
- type OrderOption
- func ByBizTag(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDesc(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxID(opts ...sql.OrderTermOption) OrderOption
- func ByStep(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldBizTag, FieldMaxID, FieldStep, FieldDesc, FieldVersion, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for tleaf fields.
Functions ¶
func BizTag ¶
BizTag applies equality check predicate on the "biz_tag" field. It's identical to BizTagEQ.
func BizTagContains ¶
BizTagContains applies the Contains predicate on the "biz_tag" field.
func BizTagContainsFold ¶
BizTagContainsFold applies the ContainsFold predicate on the "biz_tag" field.
func BizTagEqualFold ¶
BizTagEqualFold applies the EqualFold predicate on the "biz_tag" field.
func BizTagHasPrefix ¶
BizTagHasPrefix applies the HasPrefix predicate on the "biz_tag" field.
func BizTagHasSuffix ¶
BizTagHasSuffix applies the HasSuffix predicate on the "biz_tag" field.
func BizTagNotIn ¶
BizTagNotIn applies the NotIn predicate on the "biz_tag" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DescContains ¶
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEqualFold ¶
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescHasPrefix ¶
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func MaxID ¶
MaxID applies equality check predicate on the "max_id" field. It's identical to MaxIDEQ.
func MaxIDNotIn ¶
MaxIDNotIn applies the NotIn predicate on the "max_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
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.