link

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 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"
	// FieldAlias holds the string denoting the alias field in the database.
	FieldAlias = "alias"
	// FieldExpirationTime holds the string denoting the expirationtime field in the database.
	FieldExpirationTime = "expiration_time"
	// FieldClicks holds the string denoting the clicks field in the database.
	FieldClicks = "clicks"
	// EdgeFile holds the string denoting the file edge name in mutations.
	EdgeFile = "file"
	// Table holds the table name of the link in the database.
	Table = "links"
	// FileTable is the table that holds the file relation/edge.
	FileTable = "links"
	// FileInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FileInverseTable = "files"
	// FileColumn is the table column denoting the file relation/edge.
	FileColumn = "file_links"
)

Variables

View Source
var (
	// AliasValidator is a validator for the "Alias" field. It is called by the builders before save.
	AliasValidator func(string) error
	// DefaultClicks holds the default value on creation for the "Clicks" field.
	DefaultClicks int
	// ClicksValidator is a validator for the "Clicks" field. It is called by the builders before save.
	ClicksValidator func(int) error
)

Columns holds all SQL columns for link fields.

View Source
var ForeignKeys = []string{
	"file_links",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "links" table and are not defined as standalone fields in the schema.

Functions

func Alias

func Alias(v string) predicate.Link

Alias applies equality check predicate on the "Alias" field. It's identical to AliasEQ.

func AliasContains

func AliasContains(v string) predicate.Link

AliasContains applies the Contains predicate on the "Alias" field.

func AliasContainsFold

func AliasContainsFold(v string) predicate.Link

AliasContainsFold applies the ContainsFold predicate on the "Alias" field.

func AliasEQ

func AliasEQ(v string) predicate.Link

AliasEQ applies the EQ predicate on the "Alias" field.

func AliasEqualFold

func AliasEqualFold(v string) predicate.Link

AliasEqualFold applies the EqualFold predicate on the "Alias" field.

func AliasGT

func AliasGT(v string) predicate.Link

AliasGT applies the GT predicate on the "Alias" field.

func AliasGTE

func AliasGTE(v string) predicate.Link

AliasGTE applies the GTE predicate on the "Alias" field.

func AliasHasPrefix

func AliasHasPrefix(v string) predicate.Link

AliasHasPrefix applies the HasPrefix predicate on the "Alias" field.

func AliasHasSuffix

func AliasHasSuffix(v string) predicate.Link

AliasHasSuffix applies the HasSuffix predicate on the "Alias" field.

func AliasIn

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

AliasIn applies the In predicate on the "Alias" field.

func AliasLT

func AliasLT(v string) predicate.Link

AliasLT applies the LT predicate on the "Alias" field.

func AliasLTE

func AliasLTE(v string) predicate.Link

AliasLTE applies the LTE predicate on the "Alias" field.

func AliasNEQ

func AliasNEQ(v string) predicate.Link

AliasNEQ applies the NEQ predicate on the "Alias" field.

func AliasNotIn

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

AliasNotIn applies the NotIn predicate on the "Alias" field.

func And

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

And groups predicates with the AND operator between them.

func Clicks

func Clicks(v int) predicate.Link

Clicks applies equality check predicate on the "Clicks" field. It's identical to ClicksEQ.

func ClicksEQ

func ClicksEQ(v int) predicate.Link

ClicksEQ applies the EQ predicate on the "Clicks" field.

func ClicksGT

func ClicksGT(v int) predicate.Link

ClicksGT applies the GT predicate on the "Clicks" field.

func ClicksGTE

func ClicksGTE(v int) predicate.Link

ClicksGTE applies the GTE predicate on the "Clicks" field.

func ClicksIn

func ClicksIn(vs ...int) predicate.Link

ClicksIn applies the In predicate on the "Clicks" field.

func ClicksLT

func ClicksLT(v int) predicate.Link

ClicksLT applies the LT predicate on the "Clicks" field.

func ClicksLTE

func ClicksLTE(v int) predicate.Link

ClicksLTE applies the LTE predicate on the "Clicks" field.

func ClicksNEQ

func ClicksNEQ(v int) predicate.Link

ClicksNEQ applies the NEQ predicate on the "Clicks" field.

func ClicksNotIn

func ClicksNotIn(vs ...int) predicate.Link

ClicksNotIn applies the NotIn predicate on the "Clicks" field.

func ExpirationTime

func ExpirationTime(v time.Time) predicate.Link

ExpirationTime applies equality check predicate on the "ExpirationTime" field. It's identical to ExpirationTimeEQ.

func ExpirationTimeEQ

func ExpirationTimeEQ(v time.Time) predicate.Link

ExpirationTimeEQ applies the EQ predicate on the "ExpirationTime" field.

func ExpirationTimeGT

func ExpirationTimeGT(v time.Time) predicate.Link

ExpirationTimeGT applies the GT predicate on the "ExpirationTime" field.

func ExpirationTimeGTE

func ExpirationTimeGTE(v time.Time) predicate.Link

ExpirationTimeGTE applies the GTE predicate on the "ExpirationTime" field.

func ExpirationTimeIn

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

ExpirationTimeIn applies the In predicate on the "ExpirationTime" field.

func ExpirationTimeIsNil

func ExpirationTimeIsNil() predicate.Link

ExpirationTimeIsNil applies the IsNil predicate on the "ExpirationTime" field.

func ExpirationTimeLT

func ExpirationTimeLT(v time.Time) predicate.Link

ExpirationTimeLT applies the LT predicate on the "ExpirationTime" field.

func ExpirationTimeLTE

func ExpirationTimeLTE(v time.Time) predicate.Link

ExpirationTimeLTE applies the LTE predicate on the "ExpirationTime" field.

func ExpirationTimeNEQ

func ExpirationTimeNEQ(v time.Time) predicate.Link

ExpirationTimeNEQ applies the NEQ predicate on the "ExpirationTime" field.

func ExpirationTimeNotIn

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

ExpirationTimeNotIn applies the NotIn predicate on the "ExpirationTime" field.

func ExpirationTimeNotNil

func ExpirationTimeNotNil() predicate.Link

ExpirationTimeNotNil applies the NotNil predicate on the "ExpirationTime" field.

func HasFile

func HasFile() predicate.Link

HasFile applies the HasEdge predicate on the "file" edge.

func HasFileWith

func HasFileWith(preds ...predicate.File) predicate.Link

HasFileWith applies the HasEdge predicate on the "file" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Link

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Link

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Link

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Link

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Link

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Link

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Link

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Link

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) 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 ValidColumn added in v0.4.3

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