Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Cpu) predicate.Cpu
- func CPU(v int) predicate.Cpu
- func CPUEQ(v int) predicate.Cpu
- func CPUGT(v int) predicate.Cpu
- func CPUGTE(v int) predicate.Cpu
- func CPUIn(vs ...int) predicate.Cpu
- func CPULT(v int) predicate.Cpu
- func CPULTE(v int) predicate.Cpu
- func CPUNEQ(v int) predicate.Cpu
- func CPUNotIn(vs ...int) predicate.Cpu
- func CreatedAt(v time.Time) predicate.Cpu
- func CreatedAtEQ(v time.Time) predicate.Cpu
- func CreatedAtGT(v time.Time) predicate.Cpu
- func CreatedAtGTE(v time.Time) predicate.Cpu
- func CreatedAtIn(vs ...time.Time) predicate.Cpu
- func CreatedAtLT(v time.Time) predicate.Cpu
- func CreatedAtLTE(v time.Time) predicate.Cpu
- func CreatedAtNEQ(v time.Time) predicate.Cpu
- func CreatedAtNotIn(vs ...time.Time) predicate.Cpu
- func Family(v string) predicate.Cpu
- func FamilyContains(v string) predicate.Cpu
- func FamilyContainsFold(v string) predicate.Cpu
- func FamilyEQ(v string) predicate.Cpu
- func FamilyEqualFold(v string) predicate.Cpu
- func FamilyGT(v string) predicate.Cpu
- func FamilyGTE(v string) predicate.Cpu
- func FamilyHasPrefix(v string) predicate.Cpu
- func FamilyHasSuffix(v string) predicate.Cpu
- func FamilyIn(vs ...string) predicate.Cpu
- func FamilyLT(v string) predicate.Cpu
- func FamilyLTE(v string) predicate.Cpu
- func FamilyNEQ(v string) predicate.Cpu
- func FamilyNotIn(vs ...string) predicate.Cpu
- func HasHostID() predicate.Cpu
- func HasHostIDWith(preds ...predicate.Host) predicate.Cpu
- func ID(id int) predicate.Cpu
- func IDEQ(id int) predicate.Cpu
- func IDGT(id int) predicate.Cpu
- func IDGTE(id int) predicate.Cpu
- func IDIn(ids ...int) predicate.Cpu
- func IDLT(id int) predicate.Cpu
- func IDLTE(id int) predicate.Cpu
- func IDNEQ(id int) predicate.Cpu
- func IDNotIn(ids ...int) predicate.Cpu
- func Model(v string) predicate.Cpu
- func ModelContains(v string) predicate.Cpu
- func ModelContainsFold(v string) predicate.Cpu
- func ModelEQ(v string) predicate.Cpu
- func ModelEqualFold(v string) predicate.Cpu
- func ModelGT(v string) predicate.Cpu
- func ModelGTE(v string) predicate.Cpu
- func ModelHasPrefix(v string) predicate.Cpu
- func ModelHasSuffix(v string) predicate.Cpu
- func ModelIn(vs ...string) predicate.Cpu
- func ModelLT(v string) predicate.Cpu
- func ModelLTE(v string) predicate.Cpu
- func ModelNEQ(v string) predicate.Cpu
- func ModelName(v string) predicate.Cpu
- func ModelNameContains(v string) predicate.Cpu
- func ModelNameContainsFold(v string) predicate.Cpu
- func ModelNameEQ(v string) predicate.Cpu
- func ModelNameEqualFold(v string) predicate.Cpu
- func ModelNameGT(v string) predicate.Cpu
- func ModelNameGTE(v string) predicate.Cpu
- func ModelNameHasPrefix(v string) predicate.Cpu
- func ModelNameHasSuffix(v string) predicate.Cpu
- func ModelNameIn(vs ...string) predicate.Cpu
- func ModelNameLT(v string) predicate.Cpu
- func ModelNameLTE(v string) predicate.Cpu
- func ModelNameNEQ(v string) predicate.Cpu
- func ModelNameNotIn(vs ...string) predicate.Cpu
- func ModelNotIn(vs ...string) predicate.Cpu
- func Not(p predicate.Cpu) predicate.Cpu
- func Or(predicates ...predicate.Cpu) predicate.Cpu
- func UpdatedAt(v time.Time) predicate.Cpu
- func UpdatedAtEQ(v time.Time) predicate.Cpu
- func UpdatedAtGT(v time.Time) predicate.Cpu
- func UpdatedAtGTE(v time.Time) predicate.Cpu
- func UpdatedAtIn(vs ...time.Time) predicate.Cpu
- func UpdatedAtLT(v time.Time) predicate.Cpu
- func UpdatedAtLTE(v time.Time) predicate.Cpu
- func UpdatedAtNEQ(v time.Time) predicate.Cpu
- func UpdatedAtNotIn(vs ...time.Time) predicate.Cpu
- func ValidColumn(column string) bool
- func VendorID(v string) predicate.Cpu
- func VendorIDContains(v string) predicate.Cpu
- func VendorIDContainsFold(v string) predicate.Cpu
- func VendorIDEQ(v string) predicate.Cpu
- func VendorIDEqualFold(v string) predicate.Cpu
- func VendorIDGT(v string) predicate.Cpu
- func VendorIDGTE(v string) predicate.Cpu
- func VendorIDHasPrefix(v string) predicate.Cpu
- func VendorIDHasSuffix(v string) predicate.Cpu
- func VendorIDIn(vs ...string) predicate.Cpu
- func VendorIDLT(v string) predicate.Cpu
- func VendorIDLTE(v string) predicate.Cpu
- func VendorIDNEQ(v string) predicate.Cpu
- func VendorIDNotIn(vs ...string) predicate.Cpu
Constants ¶
const ( // Label holds the string label denoting the cpu type in the database. Label = "cpu" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCPU holds the string denoting the cpu field in the database. FieldCPU = "idx" // FieldVendorID holds the string denoting the vendor_id field in the database. FieldVendorID = "vendor_id" // FieldFamily holds the string denoting the family field in the database. FieldFamily = "family" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // FieldModelName holds the string denoting the model_name field in the database. FieldModelName = "model_name" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeHostID holds the string denoting the host_id edge name in mutations. EdgeHostID = "host_id" // Table holds the table name of the cpu in the database. Table = "cpus" // HostIDTable is the table that holds the host_id relation/edge. HostIDTable = "cpus" // HostIDInverseTable is the table name for the Host entity. // It exists in this package in order to avoid circular dependency with the "host" package. HostIDInverseTable = "hosts" // HostIDColumn is the table column denoting the host_id relation/edge. HostIDColumn = "host_cpu" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldCPU, FieldVendorID, FieldFamily, FieldModel, FieldModelName, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for cpu fields.
var ForeignKeys = []string{
"host_cpu",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "cpus" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Family ¶
Family applies equality check predicate on the "family" field. It's identical to FamilyEQ.
func FamilyContains ¶
FamilyContains applies the Contains predicate on the "family" field.
func FamilyContainsFold ¶
FamilyContainsFold applies the ContainsFold predicate on the "family" field.
func FamilyEqualFold ¶
FamilyEqualFold applies the EqualFold predicate on the "family" field.
func FamilyHasPrefix ¶
FamilyHasPrefix applies the HasPrefix predicate on the "family" field.
func FamilyHasSuffix ¶
FamilyHasSuffix applies the HasSuffix predicate on the "family" field.
func FamilyNotIn ¶
FamilyNotIn applies the NotIn predicate on the "family" field.
func HasHostIDWith ¶
HasHostIDWith applies the HasEdge predicate on the "host_id" edge with a given conditions (other predicates).
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelName ¶
ModelName applies equality check predicate on the "model_name" field. It's identical to ModelNameEQ.
func ModelNameContains ¶
ModelNameContains applies the Contains predicate on the "model_name" field.
func ModelNameContainsFold ¶
ModelNameContainsFold applies the ContainsFold predicate on the "model_name" field.
func ModelNameEQ ¶
ModelNameEQ applies the EQ predicate on the "model_name" field.
func ModelNameEqualFold ¶
ModelNameEqualFold applies the EqualFold predicate on the "model_name" field.
func ModelNameGT ¶
ModelNameGT applies the GT predicate on the "model_name" field.
func ModelNameGTE ¶
ModelNameGTE applies the GTE predicate on the "model_name" field.
func ModelNameHasPrefix ¶
ModelNameHasPrefix applies the HasPrefix predicate on the "model_name" field.
func ModelNameHasSuffix ¶
ModelNameHasSuffix applies the HasSuffix predicate on the "model_name" field.
func ModelNameIn ¶
ModelNameIn applies the In predicate on the "model_name" field.
func ModelNameLT ¶
ModelNameLT applies the LT predicate on the "model_name" field.
func ModelNameLTE ¶
ModelNameLTE applies the LTE predicate on the "model_name" field.
func ModelNameNEQ ¶
ModelNameNEQ applies the NEQ predicate on the "model_name" field.
func ModelNameNotIn ¶
ModelNameNotIn applies the NotIn predicate on the "model_name" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VendorID ¶
VendorID applies equality check predicate on the "vendor_id" field. It's identical to VendorIDEQ.
func VendorIDContains ¶
VendorIDContains applies the Contains predicate on the "vendor_id" field.
func VendorIDContainsFold ¶
VendorIDContainsFold applies the ContainsFold predicate on the "vendor_id" field.
func VendorIDEQ ¶
VendorIDEQ applies the EQ predicate on the "vendor_id" field.
func VendorIDEqualFold ¶
VendorIDEqualFold applies the EqualFold predicate on the "vendor_id" field.
func VendorIDGT ¶
VendorIDGT applies the GT predicate on the "vendor_id" field.
func VendorIDGTE ¶
VendorIDGTE applies the GTE predicate on the "vendor_id" field.
func VendorIDHasPrefix ¶
VendorIDHasPrefix applies the HasPrefix predicate on the "vendor_id" field.
func VendorIDHasSuffix ¶
VendorIDHasSuffix applies the HasSuffix predicate on the "vendor_id" field.
func VendorIDIn ¶
VendorIDIn applies the In predicate on the "vendor_id" field.
func VendorIDLT ¶
VendorIDLT applies the LT predicate on the "vendor_id" field.
func VendorIDLTE ¶
VendorIDLTE applies the LTE predicate on the "vendor_id" field.
func VendorIDNEQ ¶
VendorIDNEQ applies the NEQ predicate on the "vendor_id" field.
func VendorIDNotIn ¶
VendorIDNotIn applies the NotIn predicate on the "vendor_id" field.
Types ¶
This section is empty.