computespec

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the computespec type in the database.
	Label = "compute_spec"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCore holds the string denoting the core field in the database.
	FieldCore = "core"
	// FieldMemory holds the string denoting the memory field in the database.
	FieldMemory = "memory"
	// Table holds the table name of the computespec in the database.
	Table = "compute_specs"
)

Variables

Columns holds all SQL columns for computespec fields.

Functions

func And

func And(predicates ...predicate.ComputeSpec) predicate.ComputeSpec

And groups predicates with the AND operator between them.

func Core

func Core(v int) predicate.ComputeSpec

Core applies equality check predicate on the "core" field. It's identical to CoreEQ.

func CoreEQ

func CoreEQ(v int) predicate.ComputeSpec

CoreEQ applies the EQ predicate on the "core" field.

func CoreGT

func CoreGT(v int) predicate.ComputeSpec

CoreGT applies the GT predicate on the "core" field.

func CoreGTE

func CoreGTE(v int) predicate.ComputeSpec

CoreGTE applies the GTE predicate on the "core" field.

func CoreIn

func CoreIn(vs ...int) predicate.ComputeSpec

CoreIn applies the In predicate on the "core" field.

func CoreLT

func CoreLT(v int) predicate.ComputeSpec

CoreLT applies the LT predicate on the "core" field.

func CoreLTE

func CoreLTE(v int) predicate.ComputeSpec

CoreLTE applies the LTE predicate on the "core" field.

func CoreNEQ

func CoreNEQ(v int) predicate.ComputeSpec

CoreNEQ applies the NEQ predicate on the "core" field.

func CoreNotIn

func CoreNotIn(vs ...int) predicate.ComputeSpec

CoreNotIn applies the NotIn predicate on the "core" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int32) predicate.ComputeSpec

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int32) predicate.ComputeSpec

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int32) predicate.ComputeSpec

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int32) predicate.ComputeSpec

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int32) predicate.ComputeSpec

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int32) predicate.ComputeSpec

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int32) predicate.ComputeSpec

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int32) predicate.ComputeSpec

IDNotIn applies the NotIn predicate on the ID field.

func Memory

func Memory(v int) predicate.ComputeSpec

Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.

func MemoryEQ

func MemoryEQ(v int) predicate.ComputeSpec

MemoryEQ applies the EQ predicate on the "memory" field.

func MemoryGT

func MemoryGT(v int) predicate.ComputeSpec

MemoryGT applies the GT predicate on the "memory" field.

func MemoryGTE

func MemoryGTE(v int) predicate.ComputeSpec

MemoryGTE applies the GTE predicate on the "memory" field.

func MemoryIn

func MemoryIn(vs ...int) predicate.ComputeSpec

MemoryIn applies the In predicate on the "memory" field.

func MemoryLT

func MemoryLT(v int) predicate.ComputeSpec

MemoryLT applies the LT predicate on the "memory" field.

func MemoryLTE

func MemoryLTE(v int) predicate.ComputeSpec

MemoryLTE applies the LTE predicate on the "memory" field.

func MemoryNEQ

func MemoryNEQ(v int) predicate.ComputeSpec

MemoryNEQ applies the NEQ predicate on the "memory" field.

func MemoryNotIn

func MemoryNotIn(vs ...int) predicate.ComputeSpec

MemoryNotIn applies the NotIn predicate on the "memory" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ComputeSpec) predicate.ComputeSpec

Or groups predicates with the OR operator between them.

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 ComputeSpec queries.

func ByCore

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

ByCore orders the results by the core field.

func ByID

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

ByID orders the results by the id field.

func ByMemory

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

ByMemory orders the results by the memory field.

Jump to

Keyboard shortcuts

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