reference

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the reference type in the database.
	Label = "reference"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPackage holds the string denoting the package field in the database.
	FieldPackage = "package"
	// FieldRef holds the string denoting the ref field in the database.
	FieldRef = "ref"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// Table holds the table name of the reference in the database.
	Table = "references"
)

Variables

Columns holds all SQL columns for reference fields.

Functions

func And

func And(predicates ...predicate.Reference) predicate.Reference

And groups predicates with the AND operator between them.

func Hash

func Hash(v string) predicate.Reference

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

func HashContains

func HashContains(v string) predicate.Reference

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

func HashContainsFold

func HashContainsFold(v string) predicate.Reference

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

func HashEQ

func HashEQ(v string) predicate.Reference

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

func HashEqualFold

func HashEqualFold(v string) predicate.Reference

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

func HashGT

func HashGT(v string) predicate.Reference

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

func HashGTE

func HashGTE(v string) predicate.Reference

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

func HashHasPrefix

func HashHasPrefix(v string) predicate.Reference

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

func HashHasSuffix

func HashHasSuffix(v string) predicate.Reference

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

func HashIn

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

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

func HashLT

func HashLT(v string) predicate.Reference

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

func HashLTE

func HashLTE(v string) predicate.Reference

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

func HashNEQ

func HashNEQ(v string) predicate.Reference

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

func HashNotIn

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

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

func ID

func ID(id int) predicate.Reference

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Reference

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Reference

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Reference

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Reference

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Reference

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Reference

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Reference

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

Or groups predicates with the OR operator between them.

func Package

func Package(v string) predicate.Reference

Package applies equality check predicate on the "package" field. It's identical to PackageEQ.

func PackageContains

func PackageContains(v string) predicate.Reference

PackageContains applies the Contains predicate on the "package" field.

func PackageContainsFold

func PackageContainsFold(v string) predicate.Reference

PackageContainsFold applies the ContainsFold predicate on the "package" field.

func PackageEQ

func PackageEQ(v string) predicate.Reference

PackageEQ applies the EQ predicate on the "package" field.

func PackageEqualFold

func PackageEqualFold(v string) predicate.Reference

PackageEqualFold applies the EqualFold predicate on the "package" field.

func PackageGT

func PackageGT(v string) predicate.Reference

PackageGT applies the GT predicate on the "package" field.

func PackageGTE

func PackageGTE(v string) predicate.Reference

PackageGTE applies the GTE predicate on the "package" field.

func PackageHasPrefix

func PackageHasPrefix(v string) predicate.Reference

PackageHasPrefix applies the HasPrefix predicate on the "package" field.

func PackageHasSuffix

func PackageHasSuffix(v string) predicate.Reference

PackageHasSuffix applies the HasSuffix predicate on the "package" field.

func PackageIn

func PackageIn(vs ...string) predicate.Reference

PackageIn applies the In predicate on the "package" field.

func PackageLT

func PackageLT(v string) predicate.Reference

PackageLT applies the LT predicate on the "package" field.

func PackageLTE

func PackageLTE(v string) predicate.Reference

PackageLTE applies the LTE predicate on the "package" field.

func PackageNEQ

func PackageNEQ(v string) predicate.Reference

PackageNEQ applies the NEQ predicate on the "package" field.

func PackageNotIn

func PackageNotIn(vs ...string) predicate.Reference

PackageNotIn applies the NotIn predicate on the "package" field.

func Ref

func Ref(v string) predicate.Reference

Ref applies equality check predicate on the "ref" field. It's identical to RefEQ.

func RefContains

func RefContains(v string) predicate.Reference

RefContains applies the Contains predicate on the "ref" field.

func RefContainsFold

func RefContainsFold(v string) predicate.Reference

RefContainsFold applies the ContainsFold predicate on the "ref" field.

func RefEQ

func RefEQ(v string) predicate.Reference

RefEQ applies the EQ predicate on the "ref" field.

func RefEqualFold

func RefEqualFold(v string) predicate.Reference

RefEqualFold applies the EqualFold predicate on the "ref" field.

func RefGT

func RefGT(v string) predicate.Reference

RefGT applies the GT predicate on the "ref" field.

func RefGTE

func RefGTE(v string) predicate.Reference

RefGTE applies the GTE predicate on the "ref" field.

func RefHasPrefix

func RefHasPrefix(v string) predicate.Reference

RefHasPrefix applies the HasPrefix predicate on the "ref" field.

func RefHasSuffix

func RefHasSuffix(v string) predicate.Reference

RefHasSuffix applies the HasSuffix predicate on the "ref" field.

func RefIn

func RefIn(vs ...string) predicate.Reference

RefIn applies the In predicate on the "ref" field.

func RefLT

func RefLT(v string) predicate.Reference

RefLT applies the LT predicate on the "ref" field.

func RefLTE

func RefLTE(v string) predicate.Reference

RefLTE applies the LTE predicate on the "ref" field.

func RefNEQ

func RefNEQ(v string) predicate.Reference

RefNEQ applies the NEQ predicate on the "ref" field.

func RefNotIn

func RefNotIn(vs ...string) predicate.Reference

RefNotIn applies the NotIn predicate on the "ref" 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