shred

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the shred type in the database.
	Label = "shred"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPurpose holds the string denoting the purpose field in the database.
	FieldPurpose = "purpose"
	// FieldSubject holds the string denoting the subject field in the database.
	FieldSubject = "subject"
	// FieldRequestedAt holds the string denoting the requested_at field in the database.
	FieldRequestedAt = "requested_at"
	// FieldVersions holds the string denoting the versions field in the database.
	FieldVersions = "versions"
	// FieldDeks holds the string denoting the deks field in the database.
	FieldDeks = "deks"
	// FieldCompletedAt holds the string denoting the completed_at field in the database.
	FieldCompletedAt = "completed_at"
	// Table holds the table name of the shred in the database.
	Table = "shreds"
)

Variables

View Source
var (
	// PurposeValidator is a validator for the "purpose" field. It is called by the builders before save.
	PurposeValidator func(string) error
	// SubjectValidator is a validator for the "subject" field. It is called by the builders before save.
	SubjectValidator func(string) error
	// DefaultDeks holds the default value on creation for the "deks" field.
	DefaultDeks int
)

Columns holds all SQL columns for shred fields.

Functions

func And

func And(predicates ...predicate.Shred) predicate.Shred

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.Shred

CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.Shred

CompletedAtEQ applies the EQ predicate on the "completed_at" field.

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.Shred

CompletedAtGT applies the GT predicate on the "completed_at" field.

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.Shred

CompletedAtGTE applies the GTE predicate on the "completed_at" field.

func CompletedAtIn

func CompletedAtIn(vs ...time.Time) predicate.Shred

CompletedAtIn applies the In predicate on the "completed_at" field.

func CompletedAtIsNil

func CompletedAtIsNil() predicate.Shred

CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.Shred

CompletedAtLT applies the LT predicate on the "completed_at" field.

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.Shred

CompletedAtLTE applies the LTE predicate on the "completed_at" field.

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.Shred

CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.

func CompletedAtNotIn

func CompletedAtNotIn(vs ...time.Time) predicate.Shred

CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.

func CompletedAtNotNil

func CompletedAtNotNil() predicate.Shred

CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.

func Deks

func Deks(v int) predicate.Shred

Deks applies equality check predicate on the "deks" field. It's identical to DeksEQ.

func DeksEQ

func DeksEQ(v int) predicate.Shred

DeksEQ applies the EQ predicate on the "deks" field.

func DeksGT

func DeksGT(v int) predicate.Shred

DeksGT applies the GT predicate on the "deks" field.

func DeksGTE

func DeksGTE(v int) predicate.Shred

DeksGTE applies the GTE predicate on the "deks" field.

func DeksIn

func DeksIn(vs ...int) predicate.Shred

DeksIn applies the In predicate on the "deks" field.

func DeksLT

func DeksLT(v int) predicate.Shred

DeksLT applies the LT predicate on the "deks" field.

func DeksLTE

func DeksLTE(v int) predicate.Shred

DeksLTE applies the LTE predicate on the "deks" field.

func DeksNEQ

func DeksNEQ(v int) predicate.Shred

DeksNEQ applies the NEQ predicate on the "deks" field.

func DeksNotIn

func DeksNotIn(vs ...int) predicate.Shred

DeksNotIn applies the NotIn predicate on the "deks" field.

func ID

func ID(id int) predicate.Shred

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Shred

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Shred

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Shred

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Shred

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Shred

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Shred

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Purpose

func Purpose(v string) predicate.Shred

Purpose applies equality check predicate on the "purpose" field. It's identical to PurposeEQ.

func PurposeContains

func PurposeContains(v string) predicate.Shred

PurposeContains applies the Contains predicate on the "purpose" field.

func PurposeContainsFold

func PurposeContainsFold(v string) predicate.Shred

PurposeContainsFold applies the ContainsFold predicate on the "purpose" field.

func PurposeEQ

func PurposeEQ(v string) predicate.Shred

PurposeEQ applies the EQ predicate on the "purpose" field.

func PurposeEqualFold

func PurposeEqualFold(v string) predicate.Shred

PurposeEqualFold applies the EqualFold predicate on the "purpose" field.

func PurposeGT

func PurposeGT(v string) predicate.Shred

PurposeGT applies the GT predicate on the "purpose" field.

func PurposeGTE

func PurposeGTE(v string) predicate.Shred

PurposeGTE applies the GTE predicate on the "purpose" field.

func PurposeHasPrefix

func PurposeHasPrefix(v string) predicate.Shred

PurposeHasPrefix applies the HasPrefix predicate on the "purpose" field.

func PurposeHasSuffix

func PurposeHasSuffix(v string) predicate.Shred

PurposeHasSuffix applies the HasSuffix predicate on the "purpose" field.

func PurposeIn

func PurposeIn(vs ...string) predicate.Shred

PurposeIn applies the In predicate on the "purpose" field.

func PurposeLT

func PurposeLT(v string) predicate.Shred

PurposeLT applies the LT predicate on the "purpose" field.

func PurposeLTE

func PurposeLTE(v string) predicate.Shred

PurposeLTE applies the LTE predicate on the "purpose" field.

func PurposeNEQ

func PurposeNEQ(v string) predicate.Shred

PurposeNEQ applies the NEQ predicate on the "purpose" field.

func PurposeNotIn

func PurposeNotIn(vs ...string) predicate.Shred

PurposeNotIn applies the NotIn predicate on the "purpose" field.

func RequestedAt

func RequestedAt(v time.Time) predicate.Shred

RequestedAt applies equality check predicate on the "requested_at" field. It's identical to RequestedAtEQ.

func RequestedAtEQ

func RequestedAtEQ(v time.Time) predicate.Shred

RequestedAtEQ applies the EQ predicate on the "requested_at" field.

func RequestedAtGT

func RequestedAtGT(v time.Time) predicate.Shred

RequestedAtGT applies the GT predicate on the "requested_at" field.

func RequestedAtGTE

func RequestedAtGTE(v time.Time) predicate.Shred

RequestedAtGTE applies the GTE predicate on the "requested_at" field.

func RequestedAtIn

func RequestedAtIn(vs ...time.Time) predicate.Shred

RequestedAtIn applies the In predicate on the "requested_at" field.

func RequestedAtLT

func RequestedAtLT(v time.Time) predicate.Shred

RequestedAtLT applies the LT predicate on the "requested_at" field.

func RequestedAtLTE

func RequestedAtLTE(v time.Time) predicate.Shred

RequestedAtLTE applies the LTE predicate on the "requested_at" field.

func RequestedAtNEQ

func RequestedAtNEQ(v time.Time) predicate.Shred

RequestedAtNEQ applies the NEQ predicate on the "requested_at" field.

func RequestedAtNotIn

func RequestedAtNotIn(vs ...time.Time) predicate.Shred

RequestedAtNotIn applies the NotIn predicate on the "requested_at" field.

func Subject

func Subject(v string) predicate.Shred

Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.

func SubjectContains

func SubjectContains(v string) predicate.Shred

SubjectContains applies the Contains predicate on the "subject" field.

func SubjectContainsFold

func SubjectContainsFold(v string) predicate.Shred

SubjectContainsFold applies the ContainsFold predicate on the "subject" field.

func SubjectEQ

func SubjectEQ(v string) predicate.Shred

SubjectEQ applies the EQ predicate on the "subject" field.

func SubjectEqualFold

func SubjectEqualFold(v string) predicate.Shred

SubjectEqualFold applies the EqualFold predicate on the "subject" field.

func SubjectGT

func SubjectGT(v string) predicate.Shred

SubjectGT applies the GT predicate on the "subject" field.

func SubjectGTE

func SubjectGTE(v string) predicate.Shred

SubjectGTE applies the GTE predicate on the "subject" field.

func SubjectHasPrefix

func SubjectHasPrefix(v string) predicate.Shred

SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.

func SubjectHasSuffix

func SubjectHasSuffix(v string) predicate.Shred

SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.

func SubjectIn

func SubjectIn(vs ...string) predicate.Shred

SubjectIn applies the In predicate on the "subject" field.

func SubjectLT

func SubjectLT(v string) predicate.Shred

SubjectLT applies the LT predicate on the "subject" field.

func SubjectLTE

func SubjectLTE(v string) predicate.Shred

SubjectLTE applies the LTE predicate on the "subject" field.

func SubjectNEQ

func SubjectNEQ(v string) predicate.Shred

SubjectNEQ applies the NEQ predicate on the "subject" field.

func SubjectNotIn

func SubjectNotIn(vs ...string) predicate.Shred

SubjectNotIn applies the NotIn predicate on the "subject" 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 Shred queries.

func ByCompletedAt

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

ByCompletedAt orders the results by the completed_at field.

func ByDeks

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

ByDeks orders the results by the deks field.

func ByID

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

ByID orders the results by the id field.

func ByPurpose

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

ByPurpose orders the results by the purpose field.

func ByRequestedAt

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

ByRequestedAt orders the results by the requested_at field.

func BySubject

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

BySubject orders the results by the subject field.

Jump to

Keyboard shortcuts

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