link

package
v0.0.0-...-3da28a4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 3 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldNameJa holds the string denoting the name_ja field in the database.
	FieldNameJa = "name_ja"
	// FieldSiteURL holds the string denoting the site_url field in the database.
	FieldSiteURL = "site_url"
	// FieldFaviconURL holds the string denoting the favicon_url field in the database.
	FieldFaviconURL = "favicon_url"
	// FieldCategoryID holds the string denoting the category_id field in the database.
	FieldCategoryID = "category_id"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldModified holds the string denoting the modified field in the database.
	FieldModified = "modified"
	// Table holds the table name of the link in the database.
	Table = "links"
)

Variables

View Source
var (
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultModified holds the default value on creation for the "modified" field.
	DefaultModified func() time.Time
	// UpdateDefaultModified holds the default value on update for the "modified" field.
	UpdateDefaultModified func() time.Time
)

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 CategoryID

func CategoryID(v uint32) predicate.Link

CategoryID applies equality check predicate on the "category_id" field. It's identical to CategoryIDEQ.

func CategoryIDEQ

func CategoryIDEQ(v uint32) predicate.Link

CategoryIDEQ applies the EQ predicate on the "category_id" field.

func CategoryIDGT

func CategoryIDGT(v uint32) predicate.Link

CategoryIDGT applies the GT predicate on the "category_id" field.

func CategoryIDGTE

func CategoryIDGTE(v uint32) predicate.Link

CategoryIDGTE applies the GTE predicate on the "category_id" field.

func CategoryIDIn

func CategoryIDIn(vs ...uint32) predicate.Link

CategoryIDIn applies the In predicate on the "category_id" field.

func CategoryIDLT

func CategoryIDLT(v uint32) predicate.Link

CategoryIDLT applies the LT predicate on the "category_id" field.

func CategoryIDLTE

func CategoryIDLTE(v uint32) predicate.Link

CategoryIDLTE applies the LTE predicate on the "category_id" field.

func CategoryIDNEQ

func CategoryIDNEQ(v uint32) predicate.Link

CategoryIDNEQ applies the NEQ predicate on the "category_id" field.

func CategoryIDNotIn

func CategoryIDNotIn(vs ...uint32) predicate.Link

CategoryIDNotIn applies the NotIn predicate on the "category_id" field.

func Created

func Created(v time.Time) predicate.Link

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Link

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Link

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Link

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

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

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Link

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Link

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Link

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

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

CreatedNotIn applies the NotIn predicate on the "created" field.

func FaviconURL

func FaviconURL(v string) predicate.Link

FaviconURL applies equality check predicate on the "favicon_url" field. It's identical to FaviconURLEQ.

func FaviconURLContains

func FaviconURLContains(v string) predicate.Link

FaviconURLContains applies the Contains predicate on the "favicon_url" field.

func FaviconURLContainsFold

func FaviconURLContainsFold(v string) predicate.Link

FaviconURLContainsFold applies the ContainsFold predicate on the "favicon_url" field.

func FaviconURLEQ

func FaviconURLEQ(v string) predicate.Link

FaviconURLEQ applies the EQ predicate on the "favicon_url" field.

func FaviconURLEqualFold

func FaviconURLEqualFold(v string) predicate.Link

FaviconURLEqualFold applies the EqualFold predicate on the "favicon_url" field.

func FaviconURLGT

func FaviconURLGT(v string) predicate.Link

FaviconURLGT applies the GT predicate on the "favicon_url" field.

func FaviconURLGTE

func FaviconURLGTE(v string) predicate.Link

FaviconURLGTE applies the GTE predicate on the "favicon_url" field.

func FaviconURLHasPrefix

func FaviconURLHasPrefix(v string) predicate.Link

FaviconURLHasPrefix applies the HasPrefix predicate on the "favicon_url" field.

func FaviconURLHasSuffix

func FaviconURLHasSuffix(v string) predicate.Link

FaviconURLHasSuffix applies the HasSuffix predicate on the "favicon_url" field.

func FaviconURLIn

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

FaviconURLIn applies the In predicate on the "favicon_url" field.

func FaviconURLIsNil

func FaviconURLIsNil() predicate.Link

FaviconURLIsNil applies the IsNil predicate on the "favicon_url" field.

func FaviconURLLT

func FaviconURLLT(v string) predicate.Link

FaviconURLLT applies the LT predicate on the "favicon_url" field.

func FaviconURLLTE

func FaviconURLLTE(v string) predicate.Link

FaviconURLLTE applies the LTE predicate on the "favicon_url" field.

func FaviconURLNEQ

func FaviconURLNEQ(v string) predicate.Link

FaviconURLNEQ applies the NEQ predicate on the "favicon_url" field.

func FaviconURLNotIn

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

FaviconURLNotIn applies the NotIn predicate on the "favicon_url" field.

func FaviconURLNotNil

func FaviconURLNotNil() predicate.Link

FaviconURLNotNil applies the NotNil predicate on the "favicon_url" field.

func ID

func ID(id uint32) predicate.Link

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.Link

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.Link

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.Link

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.Link

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.Link

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.Link

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint32) predicate.Link

IDNotIn applies the NotIn predicate on the ID field.

func Modified

func Modified(v time.Time) predicate.Link

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v time.Time) predicate.Link

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedGT

func ModifiedGT(v time.Time) predicate.Link

ModifiedGT applies the GT predicate on the "modified" field.

func ModifiedGTE

func ModifiedGTE(v time.Time) predicate.Link

ModifiedGTE applies the GTE predicate on the "modified" field.

func ModifiedIn

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

ModifiedIn applies the In predicate on the "modified" field.

func ModifiedLT

func ModifiedLT(v time.Time) predicate.Link

ModifiedLT applies the LT predicate on the "modified" field.

func ModifiedLTE

func ModifiedLTE(v time.Time) predicate.Link

ModifiedLTE applies the LTE predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v time.Time) predicate.Link

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func ModifiedNotIn

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

ModifiedNotIn applies the NotIn predicate on the "modified" field.

func Name

func Name(v string) predicate.Link

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Link

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Link

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Link

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Link

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Link

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Link

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Link

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Link

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameJa

func NameJa(v string) predicate.Link

NameJa applies equality check predicate on the "name_ja" field. It's identical to NameJaEQ.

func NameJaContains

func NameJaContains(v string) predicate.Link

NameJaContains applies the Contains predicate on the "name_ja" field.

func NameJaContainsFold

func NameJaContainsFold(v string) predicate.Link

NameJaContainsFold applies the ContainsFold predicate on the "name_ja" field.

func NameJaEQ

func NameJaEQ(v string) predicate.Link

NameJaEQ applies the EQ predicate on the "name_ja" field.

func NameJaEqualFold

func NameJaEqualFold(v string) predicate.Link

NameJaEqualFold applies the EqualFold predicate on the "name_ja" field.

func NameJaGT

func NameJaGT(v string) predicate.Link

NameJaGT applies the GT predicate on the "name_ja" field.

func NameJaGTE

func NameJaGTE(v string) predicate.Link

NameJaGTE applies the GTE predicate on the "name_ja" field.

func NameJaHasPrefix

func NameJaHasPrefix(v string) predicate.Link

NameJaHasPrefix applies the HasPrefix predicate on the "name_ja" field.

func NameJaHasSuffix

func NameJaHasSuffix(v string) predicate.Link

NameJaHasSuffix applies the HasSuffix predicate on the "name_ja" field.

func NameJaIn

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

NameJaIn applies the In predicate on the "name_ja" field.

func NameJaLT

func NameJaLT(v string) predicate.Link

NameJaLT applies the LT predicate on the "name_ja" field.

func NameJaLTE

func NameJaLTE(v string) predicate.Link

NameJaLTE applies the LTE predicate on the "name_ja" field.

func NameJaNEQ

func NameJaNEQ(v string) predicate.Link

NameJaNEQ applies the NEQ predicate on the "name_ja" field.

func NameJaNotIn

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

NameJaNotIn applies the NotIn predicate on the "name_ja" field.

func NameLT

func NameLT(v string) predicate.Link

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Link

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Link

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" 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 SiteURL

func SiteURL(v string) predicate.Link

SiteURL applies equality check predicate on the "site_url" field. It's identical to SiteURLEQ.

func SiteURLContains

func SiteURLContains(v string) predicate.Link

SiteURLContains applies the Contains predicate on the "site_url" field.

func SiteURLContainsFold

func SiteURLContainsFold(v string) predicate.Link

SiteURLContainsFold applies the ContainsFold predicate on the "site_url" field.

func SiteURLEQ

func SiteURLEQ(v string) predicate.Link

SiteURLEQ applies the EQ predicate on the "site_url" field.

func SiteURLEqualFold

func SiteURLEqualFold(v string) predicate.Link

SiteURLEqualFold applies the EqualFold predicate on the "site_url" field.

func SiteURLGT

func SiteURLGT(v string) predicate.Link

SiteURLGT applies the GT predicate on the "site_url" field.

func SiteURLGTE

func SiteURLGTE(v string) predicate.Link

SiteURLGTE applies the GTE predicate on the "site_url" field.

func SiteURLHasPrefix

func SiteURLHasPrefix(v string) predicate.Link

SiteURLHasPrefix applies the HasPrefix predicate on the "site_url" field.

func SiteURLHasSuffix

func SiteURLHasSuffix(v string) predicate.Link

SiteURLHasSuffix applies the HasSuffix predicate on the "site_url" field.

func SiteURLIn

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

SiteURLIn applies the In predicate on the "site_url" field.

func SiteURLLT

func SiteURLLT(v string) predicate.Link

SiteURLLT applies the LT predicate on the "site_url" field.

func SiteURLLTE

func SiteURLLTE(v string) predicate.Link

SiteURLLTE applies the LTE predicate on the "site_url" field.

func SiteURLNEQ

func SiteURLNEQ(v string) predicate.Link

SiteURLNEQ applies the NEQ predicate on the "site_url" field.

func SiteURLNotIn

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

SiteURLNotIn applies the NotIn predicate on the "site_url" field.

func UserID

func UserID(v uint32) predicate.Link

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uint32) predicate.Link

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v uint32) predicate.Link

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v uint32) predicate.Link

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uint32) predicate.Link

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v uint32) predicate.Link

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v uint32) predicate.Link

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uint32) predicate.Link

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uint32) predicate.Link

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

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