link

package
v0.0.0-...-af973d3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the link type in the database.
	Label = "link"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldDescribe holds the string denoting the describe field in the database.
	FieldDescribe = "describe"
	// FieldJSON holds the string denoting the json field in the database.
	FieldJSON = "json"
	// 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 link in the database.
	Table = "links"
)

Variables

View Source
var (
	// URLValidator is a validator for the "url" field. It is called by the builders before save.
	URLValidator func(string) error
	// HashValidator is a validator for the "hash" field. It is called by the builders before save.
	HashValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for link fields.

Functions

func And

func And(predicates ...predicate.Link) predicate.Link

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Link

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Link

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Link

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Link

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Link

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Link

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Link

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

func CreatedAtNotIn

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

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

func Describe

func Describe(v string) predicate.Link

Describe applies equality check predicate on the "describe" field. It's identical to DescribeEQ.

func DescribeContains

func DescribeContains(v string) predicate.Link

DescribeContains applies the Contains predicate on the "describe" field.

func DescribeContainsFold

func DescribeContainsFold(v string) predicate.Link

DescribeContainsFold applies the ContainsFold predicate on the "describe" field.

func DescribeEQ

func DescribeEQ(v string) predicate.Link

DescribeEQ applies the EQ predicate on the "describe" field.

func DescribeEqualFold

func DescribeEqualFold(v string) predicate.Link

DescribeEqualFold applies the EqualFold predicate on the "describe" field.

func DescribeGT

func DescribeGT(v string) predicate.Link

DescribeGT applies the GT predicate on the "describe" field.

func DescribeGTE

func DescribeGTE(v string) predicate.Link

DescribeGTE applies the GTE predicate on the "describe" field.

func DescribeHasPrefix

func DescribeHasPrefix(v string) predicate.Link

DescribeHasPrefix applies the HasPrefix predicate on the "describe" field.

func DescribeHasSuffix

func DescribeHasSuffix(v string) predicate.Link

DescribeHasSuffix applies the HasSuffix predicate on the "describe" field.

func DescribeIn

func DescribeIn(vs ...string) predicate.Link

DescribeIn applies the In predicate on the "describe" field.

func DescribeIsNil

func DescribeIsNil() predicate.Link

DescribeIsNil applies the IsNil predicate on the "describe" field.

func DescribeLT

func DescribeLT(v string) predicate.Link

DescribeLT applies the LT predicate on the "describe" field.

func DescribeLTE

func DescribeLTE(v string) predicate.Link

DescribeLTE applies the LTE predicate on the "describe" field.

func DescribeNEQ

func DescribeNEQ(v string) predicate.Link

DescribeNEQ applies the NEQ predicate on the "describe" field.

func DescribeNotIn

func DescribeNotIn(vs ...string) predicate.Link

DescribeNotIn applies the NotIn predicate on the "describe" field.

func DescribeNotNil

func DescribeNotNil() predicate.Link

DescribeNotNil applies the NotNil predicate on the "describe" field.

func Hash

func Hash(v string) predicate.Link

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Link

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Link

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Link

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Link

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Link

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Link

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Link

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Link

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Link

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Link

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Link

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Link

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Link

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id uuid.UUID) predicate.Link

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Link

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Link

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Link

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Link

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Link

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Link

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Link

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Link

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

Or groups predicates with the OR operator between them.

func URL

func URL(v string) predicate.Link

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Link

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Link

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Link

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Link

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Link

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Link

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Link

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Link

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Link

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Link

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Link

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Link

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Link

URLNotIn applies the NotIn predicate on the "url" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Link

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Link

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Link

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Link

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Link

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Link

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Link

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

func UpdatedAtNotIn

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Link queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescribe

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

ByDescribe orders the results by the describe field.

func ByHash

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

ByHash orders the results by the hash field.

func ByID

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

ByID orders the results by the id field.

func ByURL

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

ByURL orders the results by the url field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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