process

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the process type in the database.
	Label = "process"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFilename holds the string denoting the filename field in the database.
	FieldFilename = "filename"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldProcessResponse holds the string denoting the process_response field in the database.
	FieldProcessResponse = "process_response"
	// FieldAnchorID holds the string denoting the anchor_id field in the database.
	FieldAnchorID = "anchor_id"
	// FieldIsAggregated holds the string denoting the is_aggregated field in the database.
	FieldIsAggregated = "is_aggregated"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the process in the database.
	Table = "processes"
)

Variables

View Source
var (
	// FilenameValidator is a validator for the "filename" field. It is called by the builders before save.
	FilenameValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus bool
	// HashValidator is a validator for the "hash" field. It is called by the builders before save.
	HashValidator func(string) error
	// DefaultIsAggregated holds the default value on creation for the "is_aggregated" field.
	DefaultIsAggregated bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for process fields.

Functions

func AnchorID

func AnchorID(v int) predicate.Process

AnchorID applies equality check predicate on the "anchor_id" field. It's identical to AnchorIDEQ.

func AnchorIDEQ

func AnchorIDEQ(v int) predicate.Process

AnchorIDEQ applies the EQ predicate on the "anchor_id" field.

func AnchorIDGT

func AnchorIDGT(v int) predicate.Process

AnchorIDGT applies the GT predicate on the "anchor_id" field.

func AnchorIDGTE

func AnchorIDGTE(v int) predicate.Process

AnchorIDGTE applies the GTE predicate on the "anchor_id" field.

func AnchorIDIn

func AnchorIDIn(vs ...int) predicate.Process

AnchorIDIn applies the In predicate on the "anchor_id" field.

func AnchorIDIsNil

func AnchorIDIsNil() predicate.Process

AnchorIDIsNil applies the IsNil predicate on the "anchor_id" field.

func AnchorIDLT

func AnchorIDLT(v int) predicate.Process

AnchorIDLT applies the LT predicate on the "anchor_id" field.

func AnchorIDLTE

func AnchorIDLTE(v int) predicate.Process

AnchorIDLTE applies the LTE predicate on the "anchor_id" field.

func AnchorIDNEQ

func AnchorIDNEQ(v int) predicate.Process

AnchorIDNEQ applies the NEQ predicate on the "anchor_id" field.

func AnchorIDNotIn

func AnchorIDNotIn(vs ...int) predicate.Process

AnchorIDNotIn applies the NotIn predicate on the "anchor_id" field.

func AnchorIDNotNil

func AnchorIDNotNil() predicate.Process

AnchorIDNotNil applies the NotNil predicate on the "anchor_id" field.

func And

func And(predicates ...predicate.Process) predicate.Process

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Process

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Process

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Process

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Process

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Process

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Process

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Process

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Process

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Process

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Filename

func Filename(v string) predicate.Process

Filename applies equality check predicate on the "filename" field. It's identical to FilenameEQ.

func FilenameContains

func FilenameContains(v string) predicate.Process

FilenameContains applies the Contains predicate on the "filename" field.

func FilenameContainsFold

func FilenameContainsFold(v string) predicate.Process

FilenameContainsFold applies the ContainsFold predicate on the "filename" field.

func FilenameEQ

func FilenameEQ(v string) predicate.Process

FilenameEQ applies the EQ predicate on the "filename" field.

func FilenameEqualFold

func FilenameEqualFold(v string) predicate.Process

FilenameEqualFold applies the EqualFold predicate on the "filename" field.

func FilenameGT

func FilenameGT(v string) predicate.Process

FilenameGT applies the GT predicate on the "filename" field.

func FilenameGTE

func FilenameGTE(v string) predicate.Process

FilenameGTE applies the GTE predicate on the "filename" field.

func FilenameHasPrefix

func FilenameHasPrefix(v string) predicate.Process

FilenameHasPrefix applies the HasPrefix predicate on the "filename" field.

func FilenameHasSuffix

func FilenameHasSuffix(v string) predicate.Process

FilenameHasSuffix applies the HasSuffix predicate on the "filename" field.

func FilenameIn

func FilenameIn(vs ...string) predicate.Process

FilenameIn applies the In predicate on the "filename" field.

func FilenameLT

func FilenameLT(v string) predicate.Process

FilenameLT applies the LT predicate on the "filename" field.

func FilenameLTE

func FilenameLTE(v string) predicate.Process

FilenameLTE applies the LTE predicate on the "filename" field.

func FilenameNEQ

func FilenameNEQ(v string) predicate.Process

FilenameNEQ applies the NEQ predicate on the "filename" field.

func FilenameNotIn

func FilenameNotIn(vs ...string) predicate.Process

FilenameNotIn applies the NotIn predicate on the "filename" field.

func Hash

func Hash(v string) predicate.Process

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

func HashContains

func HashContains(v string) predicate.Process

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

func HashContainsFold

func HashContainsFold(v string) predicate.Process

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

func HashEQ

func HashEQ(v string) predicate.Process

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

func HashEqualFold

func HashEqualFold(v string) predicate.Process

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

func HashGT

func HashGT(v string) predicate.Process

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

func HashGTE

func HashGTE(v string) predicate.Process

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

func HashHasPrefix

func HashHasPrefix(v string) predicate.Process

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

func HashHasSuffix

func HashHasSuffix(v string) predicate.Process

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

func HashIn

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

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

func HashLT

func HashLT(v string) predicate.Process

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

func HashLTE

func HashLTE(v string) predicate.Process

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

func HashNEQ

func HashNEQ(v string) predicate.Process

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

func HashNotIn

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

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

func ID

func ID(id uuid.UUID) predicate.Process

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Process

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Process

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Process

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Process

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Process

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Process

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Process

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Process

IDNotIn applies the NotIn predicate on the ID field.

func IsAggregated

func IsAggregated(v bool) predicate.Process

IsAggregated applies equality check predicate on the "is_aggregated" field. It's identical to IsAggregatedEQ.

func IsAggregatedEQ

func IsAggregatedEQ(v bool) predicate.Process

IsAggregatedEQ applies the EQ predicate on the "is_aggregated" field.

func IsAggregatedNEQ

func IsAggregatedNEQ(v bool) predicate.Process

IsAggregatedNEQ applies the NEQ predicate on the "is_aggregated" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Process) predicate.Process

Or groups predicates with the OR operator between them.

func ProcessResponseIsNil

func ProcessResponseIsNil() predicate.Process

ProcessResponseIsNil applies the IsNil predicate on the "process_response" field.

func ProcessResponseNotNil

func ProcessResponseNotNil() predicate.Process

ProcessResponseNotNil applies the NotNil predicate on the "process_response" field.

func Status

func Status(v bool) predicate.Process

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v bool) predicate.Process

StatusEQ applies the EQ predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v bool) predicate.Process

StatusNEQ applies the NEQ predicate on the "status" 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 Process queries.

func ByAnchorID

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

ByAnchorID orders the results by the anchor_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByFilename

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

ByFilename orders the results by the filename field.

func ByHash

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

ByHash orders the results by the hash field.

func ByID

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

ByID orders the results by the id field.

func ByIsAggregated

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

ByIsAggregated orders the results by the is_aggregated field.

func ByStatus

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

ByStatus orders the results by the status field.

Jump to

Keyboard shortcuts

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