pin

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the pin type in the database.
	Label = "pin"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldRef holds the string denoting the ref field in the database.
	FieldRef = "ref"
	// FieldTarget holds the string denoting the target field in the database.
	FieldTarget = "target"
	// FieldReceivedAt holds the string denoting the received_at field in the database.
	FieldReceivedAt = "received_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// Table holds the table name of the pin in the database.
	Table = "pins"
)

Variables

Columns holds all SQL columns for pin fields.

Functions

func And

func And(predicates ...predicate.Pin) predicate.Pin

And groups predicates with the AND operator between them.

func DeletedAt

func DeletedAt(v time.Time) predicate.Pin

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Pin

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Pin

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Pin

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Pin

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Pin

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Pin

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Pin

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Pin

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Pin

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Pin

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func ID

func ID(id int) predicate.Pin

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Pin

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Pin

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Pin

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Pin

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Pin

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Pin

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.Pin

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Pin

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

func Not(p predicate.Pin) predicate.Pin

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Pin) predicate.Pin

Or groups predicates with the OR operator between them.

func ReceivedAt

func ReceivedAt(v time.Time) predicate.Pin

ReceivedAt applies equality check predicate on the "received_at" field. It's identical to ReceivedAtEQ.

func ReceivedAtEQ

func ReceivedAtEQ(v time.Time) predicate.Pin

ReceivedAtEQ applies the EQ predicate on the "received_at" field.

func ReceivedAtGT

func ReceivedAtGT(v time.Time) predicate.Pin

ReceivedAtGT applies the GT predicate on the "received_at" field.

func ReceivedAtGTE

func ReceivedAtGTE(v time.Time) predicate.Pin

ReceivedAtGTE applies the GTE predicate on the "received_at" field.

func ReceivedAtIn

func ReceivedAtIn(vs ...time.Time) predicate.Pin

ReceivedAtIn applies the In predicate on the "received_at" field.

func ReceivedAtLT

func ReceivedAtLT(v time.Time) predicate.Pin

ReceivedAtLT applies the LT predicate on the "received_at" field.

func ReceivedAtLTE

func ReceivedAtLTE(v time.Time) predicate.Pin

ReceivedAtLTE applies the LTE predicate on the "received_at" field.

func ReceivedAtNEQ

func ReceivedAtNEQ(v time.Time) predicate.Pin

ReceivedAtNEQ applies the NEQ predicate on the "received_at" field.

func ReceivedAtNotIn

func ReceivedAtNotIn(vs ...time.Time) predicate.Pin

ReceivedAtNotIn applies the NotIn predicate on the "received_at" field.

func Ref

func Ref(v []byte) predicate.Pin

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

func RefEQ

func RefEQ(v []byte) predicate.Pin

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

func RefGT

func RefGT(v []byte) predicate.Pin

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

func RefGTE

func RefGTE(v []byte) predicate.Pin

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

func RefIn

func RefIn(vs ...[]byte) predicate.Pin

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

func RefLT

func RefLT(v []byte) predicate.Pin

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

func RefLTE

func RefLTE(v []byte) predicate.Pin

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

func RefNEQ

func RefNEQ(v []byte) predicate.Pin

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

func RefNotIn

func RefNotIn(vs ...[]byte) predicate.Pin

RefNotIn applies the NotIn predicate on the "ref" field.

func Target

func Target(v []byte) predicate.Pin

Target applies equality check predicate on the "target" field. It's identical to TargetEQ.

func TargetEQ

func TargetEQ(v []byte) predicate.Pin

TargetEQ applies the EQ predicate on the "target" field.

func TargetGT

func TargetGT(v []byte) predicate.Pin

TargetGT applies the GT predicate on the "target" field.

func TargetGTE

func TargetGTE(v []byte) predicate.Pin

TargetGTE applies the GTE predicate on the "target" field.

func TargetIn

func TargetIn(vs ...[]byte) predicate.Pin

TargetIn applies the In predicate on the "target" field.

func TargetLT

func TargetLT(v []byte) predicate.Pin

TargetLT applies the LT predicate on the "target" field.

func TargetLTE

func TargetLTE(v []byte) predicate.Pin

TargetLTE applies the LTE predicate on the "target" field.

func TargetNEQ

func TargetNEQ(v []byte) predicate.Pin

TargetNEQ applies the NEQ predicate on the "target" field.

func TargetNotIn

func TargetNotIn(vs ...[]byte) predicate.Pin

TargetNotIn applies the NotIn predicate on the "target" 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 Pin queries.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByID

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

ByID orders the results by the id field.

func ByReceivedAt

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

ByReceivedAt orders the results by the received_at field.

Jump to

Keyboard shortcuts

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