tshorturl

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 tshorturl type in the database.
	Label = "tshort_url"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBizID holds the string denoting the biz_id field in the database.
	FieldBizID = "biz_id"
	// FieldOrigin holds the string denoting the origin field in the database.
	FieldOrigin = "origin"
	// FieldShort holds the string denoting the short field in the database.
	FieldShort = "short"
	// FieldVisit holds the string denoting the visit field in the database.
	FieldVisit = "visit"
	// 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"
	// FieldExpiredAt holds the string denoting the expired_at field in the database.
	FieldExpiredAt = "expired_at"
	// Table holds the table name of the tshorturl in the database.
	Table = "short_url"
)

Variables

View Source
var (
	// OriginValidator is a validator for the "origin" field. It is called by the builders before save.
	OriginValidator func(string) error
	// DefaultVisit holds the default value on creation for the "visit" field.
	DefaultVisit int64
	// DefaultExpiredAt holds the default value on creation for the "expired_at" field.
	DefaultExpiredAt int64
)

Columns holds all SQL columns for tshorturl fields.

Functions

func And

func And(predicates ...predicate.TShortUrl) predicate.TShortUrl

And groups predicates with the AND operator between them.

func BizID

func BizID(v int64) predicate.TShortUrl

BizID applies equality check predicate on the "biz_id" field. It's identical to BizIDEQ.

func BizIDEQ

func BizIDEQ(v int64) predicate.TShortUrl

BizIDEQ applies the EQ predicate on the "biz_id" field.

func BizIDGT

func BizIDGT(v int64) predicate.TShortUrl

BizIDGT applies the GT predicate on the "biz_id" field.

func BizIDGTE

func BizIDGTE(v int64) predicate.TShortUrl

BizIDGTE applies the GTE predicate on the "biz_id" field.

func BizIDIn

func BizIDIn(vs ...int64) predicate.TShortUrl

BizIDIn applies the In predicate on the "biz_id" field.

func BizIDLT

func BizIDLT(v int64) predicate.TShortUrl

BizIDLT applies the LT predicate on the "biz_id" field.

func BizIDLTE

func BizIDLTE(v int64) predicate.TShortUrl

BizIDLTE applies the LTE predicate on the "biz_id" field.

func BizIDNEQ

func BizIDNEQ(v int64) predicate.TShortUrl

BizIDNEQ applies the NEQ predicate on the "biz_id" field.

func BizIDNotIn

func BizIDNotIn(vs ...int64) predicate.TShortUrl

BizIDNotIn applies the NotIn predicate on the "biz_id" field.

func CreatedAt

func CreatedAt(v int64) predicate.TShortUrl

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

func CreatedAtEQ

func CreatedAtEQ(v int64) predicate.TShortUrl

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

func CreatedAtGT

func CreatedAtGT(v int64) predicate.TShortUrl

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

func CreatedAtGTE

func CreatedAtGTE(v int64) predicate.TShortUrl

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v int64) predicate.TShortUrl

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

func CreatedAtLTE

func CreatedAtLTE(v int64) predicate.TShortUrl

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

func CreatedAtNEQ

func CreatedAtNEQ(v int64) predicate.TShortUrl

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

func CreatedAtNotIn

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

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

func ExpiredAt

func ExpiredAt(v int64) predicate.TShortUrl

ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.

func ExpiredAtEQ

func ExpiredAtEQ(v int64) predicate.TShortUrl

ExpiredAtEQ applies the EQ predicate on the "expired_at" field.

func ExpiredAtGT

func ExpiredAtGT(v int64) predicate.TShortUrl

ExpiredAtGT applies the GT predicate on the "expired_at" field.

func ExpiredAtGTE

func ExpiredAtGTE(v int64) predicate.TShortUrl

ExpiredAtGTE applies the GTE predicate on the "expired_at" field.

func ExpiredAtIn

func ExpiredAtIn(vs ...int64) predicate.TShortUrl

ExpiredAtIn applies the In predicate on the "expired_at" field.

func ExpiredAtLT

func ExpiredAtLT(v int64) predicate.TShortUrl

ExpiredAtLT applies the LT predicate on the "expired_at" field.

func ExpiredAtLTE

func ExpiredAtLTE(v int64) predicate.TShortUrl

ExpiredAtLTE applies the LTE predicate on the "expired_at" field.

func ExpiredAtNEQ

func ExpiredAtNEQ(v int64) predicate.TShortUrl

ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.

func ExpiredAtNotIn

func ExpiredAtNotIn(vs ...int64) predicate.TShortUrl

ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.

func ID

func ID(id int64) predicate.TShortUrl

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.TShortUrl

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.TShortUrl

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.TShortUrl

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.TShortUrl

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.TShortUrl

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.TShortUrl

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.TShortUrl) predicate.TShortUrl

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.TShortUrl

Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.

func OriginContains

func OriginContains(v string) predicate.TShortUrl

OriginContains applies the Contains predicate on the "origin" field.

func OriginContainsFold

func OriginContainsFold(v string) predicate.TShortUrl

OriginContainsFold applies the ContainsFold predicate on the "origin" field.

func OriginEQ

func OriginEQ(v string) predicate.TShortUrl

OriginEQ applies the EQ predicate on the "origin" field.

func OriginEqualFold

func OriginEqualFold(v string) predicate.TShortUrl

OriginEqualFold applies the EqualFold predicate on the "origin" field.

func OriginGT

func OriginGT(v string) predicate.TShortUrl

OriginGT applies the GT predicate on the "origin" field.

func OriginGTE

func OriginGTE(v string) predicate.TShortUrl

OriginGTE applies the GTE predicate on the "origin" field.

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.TShortUrl

OriginHasPrefix applies the HasPrefix predicate on the "origin" field.

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.TShortUrl

OriginHasSuffix applies the HasSuffix predicate on the "origin" field.

func OriginIn

func OriginIn(vs ...string) predicate.TShortUrl

OriginIn applies the In predicate on the "origin" field.

func OriginLT

func OriginLT(v string) predicate.TShortUrl

OriginLT applies the LT predicate on the "origin" field.

func OriginLTE

func OriginLTE(v string) predicate.TShortUrl

OriginLTE applies the LTE predicate on the "origin" field.

func OriginNEQ

func OriginNEQ(v string) predicate.TShortUrl

OriginNEQ applies the NEQ predicate on the "origin" field.

func OriginNotIn

func OriginNotIn(vs ...string) predicate.TShortUrl

OriginNotIn applies the NotIn predicate on the "origin" field.

func Short

func Short(v int64) predicate.TShortUrl

Short applies equality check predicate on the "short" field. It's identical to ShortEQ.

func ShortEQ

func ShortEQ(v int64) predicate.TShortUrl

ShortEQ applies the EQ predicate on the "short" field.

func ShortGT

func ShortGT(v int64) predicate.TShortUrl

ShortGT applies the GT predicate on the "short" field.

func ShortGTE

func ShortGTE(v int64) predicate.TShortUrl

ShortGTE applies the GTE predicate on the "short" field.

func ShortIn

func ShortIn(vs ...int64) predicate.TShortUrl

ShortIn applies the In predicate on the "short" field.

func ShortLT

func ShortLT(v int64) predicate.TShortUrl

ShortLT applies the LT predicate on the "short" field.

func ShortLTE

func ShortLTE(v int64) predicate.TShortUrl

ShortLTE applies the LTE predicate on the "short" field.

func ShortNEQ

func ShortNEQ(v int64) predicate.TShortUrl

ShortNEQ applies the NEQ predicate on the "short" field.

func ShortNotIn

func ShortNotIn(vs ...int64) predicate.TShortUrl

ShortNotIn applies the NotIn predicate on the "short" field.

func UpdatedAt

func UpdatedAt(v int64) predicate.TShortUrl

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

func UpdatedAtEQ

func UpdatedAtEQ(v int64) predicate.TShortUrl

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

func UpdatedAtGT

func UpdatedAtGT(v int64) predicate.TShortUrl

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

func UpdatedAtGTE

func UpdatedAtGTE(v int64) predicate.TShortUrl

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v int64) predicate.TShortUrl

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

func UpdatedAtLTE

func UpdatedAtLTE(v int64) predicate.TShortUrl

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v int64) predicate.TShortUrl

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

func UpdatedAtNotIn

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

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 Visit

func Visit(v int64) predicate.TShortUrl

Visit applies equality check predicate on the "visit" field. It's identical to VisitEQ.

func VisitEQ

func VisitEQ(v int64) predicate.TShortUrl

VisitEQ applies the EQ predicate on the "visit" field.

func VisitGT

func VisitGT(v int64) predicate.TShortUrl

VisitGT applies the GT predicate on the "visit" field.

func VisitGTE

func VisitGTE(v int64) predicate.TShortUrl

VisitGTE applies the GTE predicate on the "visit" field.

func VisitIn

func VisitIn(vs ...int64) predicate.TShortUrl

VisitIn applies the In predicate on the "visit" field.

func VisitLT

func VisitLT(v int64) predicate.TShortUrl

VisitLT applies the LT predicate on the "visit" field.

func VisitLTE

func VisitLTE(v int64) predicate.TShortUrl

VisitLTE applies the LTE predicate on the "visit" field.

func VisitNEQ

func VisitNEQ(v int64) predicate.TShortUrl

VisitNEQ applies the NEQ predicate on the "visit" field.

func VisitNotIn

func VisitNotIn(vs ...int64) predicate.TShortUrl

VisitNotIn applies the NotIn predicate on the "visit" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the TShortUrl queries.

func ByBizID

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

ByBizID orders the results by the biz_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByExpiredAt

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

ByExpiredAt orders the results by the expired_at field.

func ByID

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

ByID orders the results by the id field.

func ByOrigin

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

ByOrigin orders the results by the origin field.

func ByShort

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

ByShort orders the results by the short field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVisit

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

ByVisit orders the results by the visit field.

Jump to

Keyboard shortcuts

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