Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ComputeSpec) predicate.ComputeSpec
- func Core(v int) predicate.ComputeSpec
- func CoreEQ(v int) predicate.ComputeSpec
- func CoreGT(v int) predicate.ComputeSpec
- func CoreGTE(v int) predicate.ComputeSpec
- func CoreIn(vs ...int) predicate.ComputeSpec
- func CoreLT(v int) predicate.ComputeSpec
- func CoreLTE(v int) predicate.ComputeSpec
- func CoreNEQ(v int) predicate.ComputeSpec
- func CoreNotIn(vs ...int) predicate.ComputeSpec
- func ID(id int32) predicate.ComputeSpec
- func IDEQ(id int32) predicate.ComputeSpec
- func IDGT(id int32) predicate.ComputeSpec
- func IDGTE(id int32) predicate.ComputeSpec
- func IDIn(ids ...int32) predicate.ComputeSpec
- func IDLT(id int32) predicate.ComputeSpec
- func IDLTE(id int32) predicate.ComputeSpec
- func IDNEQ(id int32) predicate.ComputeSpec
- func IDNotIn(ids ...int32) predicate.ComputeSpec
- func Memory(v int) predicate.ComputeSpec
- func MemoryEQ(v int) predicate.ComputeSpec
- func MemoryGT(v int) predicate.ComputeSpec
- func MemoryGTE(v int) predicate.ComputeSpec
- func MemoryIn(vs ...int) predicate.ComputeSpec
- func MemoryLT(v int) predicate.ComputeSpec
- func MemoryLTE(v int) predicate.ComputeSpec
- func MemoryNEQ(v int) predicate.ComputeSpec
- func MemoryNotIn(vs ...int) predicate.ComputeSpec
- func Not(p predicate.ComputeSpec) predicate.ComputeSpec
- func Or(predicates ...predicate.ComputeSpec) predicate.ComputeSpec
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldCore, FieldMemory, }
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 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 ¶
func Not(p predicate.ComputeSpec) predicate.ComputeSpec
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.