Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ComputeSpec) predicate.ComputeSpec
- func Core(v string) predicate.ComputeSpec
- func CoreContains(v string) predicate.ComputeSpec
- func CoreContainsFold(v string) predicate.ComputeSpec
- func CoreEQ(v string) predicate.ComputeSpec
- func CoreEqualFold(v string) predicate.ComputeSpec
- func CoreGT(v string) predicate.ComputeSpec
- func CoreGTE(v string) predicate.ComputeSpec
- func CoreHasPrefix(v string) predicate.ComputeSpec
- func CoreHasSuffix(v string) predicate.ComputeSpec
- func CoreIn(vs ...string) predicate.ComputeSpec
- func CoreLT(v string) predicate.ComputeSpec
- func CoreLTE(v string) predicate.ComputeSpec
- func CoreNEQ(v string) predicate.ComputeSpec
- func CoreNotIn(vs ...string) 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 string) predicate.ComputeSpec
- func MemoryContains(v string) predicate.ComputeSpec
- func MemoryContainsFold(v string) predicate.ComputeSpec
- func MemoryEQ(v string) predicate.ComputeSpec
- func MemoryEqualFold(v string) predicate.ComputeSpec
- func MemoryGT(v string) predicate.ComputeSpec
- func MemoryGTE(v string) predicate.ComputeSpec
- func MemoryHasPrefix(v string) predicate.ComputeSpec
- func MemoryHasSuffix(v string) predicate.ComputeSpec
- func MemoryIn(vs ...string) predicate.ComputeSpec
- func MemoryLT(v string) predicate.ComputeSpec
- func MemoryLTE(v string) predicate.ComputeSpec
- func MemoryNEQ(v string) predicate.ComputeSpec
- func MemoryNotIn(vs ...string) 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 ( // CoreValidator is a validator for the "core" field. It is called by the builders before save. CoreValidator func(string) error // MemoryValidator is a validator for the "memory" field. It is called by the builders before save. MemoryValidator func(string) error )
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 string) predicate.ComputeSpec
Core applies equality check predicate on the "core" field. It's identical to CoreEQ.
func CoreContains ¶
func CoreContains(v string) predicate.ComputeSpec
CoreContains applies the Contains predicate on the "core" field.
func CoreContainsFold ¶
func CoreContainsFold(v string) predicate.ComputeSpec
CoreContainsFold applies the ContainsFold predicate on the "core" field.
func CoreEQ ¶
func CoreEQ(v string) predicate.ComputeSpec
CoreEQ applies the EQ predicate on the "core" field.
func CoreEqualFold ¶
func CoreEqualFold(v string) predicate.ComputeSpec
CoreEqualFold applies the EqualFold predicate on the "core" field.
func CoreGT ¶
func CoreGT(v string) predicate.ComputeSpec
CoreGT applies the GT predicate on the "core" field.
func CoreGTE ¶
func CoreGTE(v string) predicate.ComputeSpec
CoreGTE applies the GTE predicate on the "core" field.
func CoreHasPrefix ¶
func CoreHasPrefix(v string) predicate.ComputeSpec
CoreHasPrefix applies the HasPrefix predicate on the "core" field.
func CoreHasSuffix ¶
func CoreHasSuffix(v string) predicate.ComputeSpec
CoreHasSuffix applies the HasSuffix predicate on the "core" field.
func CoreIn ¶
func CoreIn(vs ...string) predicate.ComputeSpec
CoreIn applies the In predicate on the "core" field.
func CoreLT ¶
func CoreLT(v string) predicate.ComputeSpec
CoreLT applies the LT predicate on the "core" field.
func CoreLTE ¶
func CoreLTE(v string) predicate.ComputeSpec
CoreLTE applies the LTE predicate on the "core" field.
func CoreNEQ ¶
func CoreNEQ(v string) predicate.ComputeSpec
CoreNEQ applies the NEQ predicate on the "core" field.
func CoreNotIn ¶
func CoreNotIn(vs ...string) 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 string) predicate.ComputeSpec
Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.
func MemoryContains ¶
func MemoryContains(v string) predicate.ComputeSpec
MemoryContains applies the Contains predicate on the "memory" field.
func MemoryContainsFold ¶
func MemoryContainsFold(v string) predicate.ComputeSpec
MemoryContainsFold applies the ContainsFold predicate on the "memory" field.
func MemoryEQ ¶
func MemoryEQ(v string) predicate.ComputeSpec
MemoryEQ applies the EQ predicate on the "memory" field.
func MemoryEqualFold ¶
func MemoryEqualFold(v string) predicate.ComputeSpec
MemoryEqualFold applies the EqualFold predicate on the "memory" field.
func MemoryGT ¶
func MemoryGT(v string) predicate.ComputeSpec
MemoryGT applies the GT predicate on the "memory" field.
func MemoryGTE ¶
func MemoryGTE(v string) predicate.ComputeSpec
MemoryGTE applies the GTE predicate on the "memory" field.
func MemoryHasPrefix ¶
func MemoryHasPrefix(v string) predicate.ComputeSpec
MemoryHasPrefix applies the HasPrefix predicate on the "memory" field.
func MemoryHasSuffix ¶
func MemoryHasSuffix(v string) predicate.ComputeSpec
MemoryHasSuffix applies the HasSuffix predicate on the "memory" field.
func MemoryIn ¶
func MemoryIn(vs ...string) predicate.ComputeSpec
MemoryIn applies the In predicate on the "memory" field.
func MemoryLT ¶
func MemoryLT(v string) predicate.ComputeSpec
MemoryLT applies the LT predicate on the "memory" field.
func MemoryLTE ¶
func MemoryLTE(v string) predicate.ComputeSpec
MemoryLTE applies the LTE predicate on the "memory" field.
func MemoryNEQ ¶
func MemoryNEQ(v string) predicate.ComputeSpec
MemoryNEQ applies the NEQ predicate on the "memory" field.
func MemoryNotIn ¶
func MemoryNotIn(vs ...string) 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.