feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图
This commit is contained in:
@@ -0,0 +1,142 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package backuprecord
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the backuprecord type in the database.
|
||||
Label = "backup_record"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldExecutedAt holds the string denoting the executed_at field in the database.
|
||||
FieldExecutedAt = "executed_at"
|
||||
// FieldRangeStart holds the string denoting the range_start field in the database.
|
||||
FieldRangeStart = "range_start"
|
||||
// FieldRangeEnd holds the string denoting the range_end field in the database.
|
||||
FieldRangeEnd = "range_end"
|
||||
// FieldBackupPath holds the string denoting the backup_path field in the database.
|
||||
FieldBackupPath = "backup_path"
|
||||
// FieldTotalSize holds the string denoting the total_size field in the database.
|
||||
FieldTotalSize = "total_size"
|
||||
// FieldItemsJSON holds the string denoting the items_json field in the database.
|
||||
FieldItemsJSON = "items_json"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
FieldOperator = "operator"
|
||||
// FieldChecksum holds the string denoting the checksum field in the database.
|
||||
FieldChecksum = "checksum"
|
||||
// FieldScope holds the string denoting the scope field in the database.
|
||||
FieldScope = "scope"
|
||||
// Table holds the table name of the backuprecord in the database.
|
||||
Table = "backup_record"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for backuprecord fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldExecutedAt,
|
||||
FieldRangeStart,
|
||||
FieldRangeEnd,
|
||||
FieldBackupPath,
|
||||
FieldTotalSize,
|
||||
FieldItemsJSON,
|
||||
FieldStatus,
|
||||
FieldOperator,
|
||||
FieldChecksum,
|
||||
FieldScope,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultExecutedAt holds the default value on creation for the "executed_at" field.
|
||||
DefaultExecutedAt func() int64
|
||||
// DefaultTotalSize holds the default value on creation for the "total_size" field.
|
||||
DefaultTotalSize int64
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
StatusValidator func(string) error
|
||||
// DefaultOperator holds the default value on creation for the "operator" field.
|
||||
DefaultOperator string
|
||||
// OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
OperatorValidator func(string) error
|
||||
// DefaultChecksum holds the default value on creation for the "checksum" field.
|
||||
DefaultChecksum string
|
||||
// ChecksumValidator is a validator for the "checksum" field. It is called by the builders before save.
|
||||
ChecksumValidator func(string) error
|
||||
// DefaultScope holds the default value on creation for the "scope" field.
|
||||
DefaultScope string
|
||||
// ScopeValidator is a validator for the "scope" field. It is called by the builders before save.
|
||||
ScopeValidator func(string) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the BackupRecord queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByExecutedAt orders the results by the executed_at field.
|
||||
func ByExecutedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldExecutedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRangeStart orders the results by the range_start field.
|
||||
func ByRangeStart(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRangeStart, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRangeEnd orders the results by the range_end field.
|
||||
func ByRangeEnd(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRangeEnd, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBackupPath orders the results by the backup_path field.
|
||||
func ByBackupPath(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBackupPath, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTotalSize orders the results by the total_size field.
|
||||
func ByTotalSize(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTotalSize, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByItemsJSON orders the results by the items_json field.
|
||||
func ByItemsJSON(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldItemsJSON, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOperator orders the results by the operator field.
|
||||
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOperator, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByChecksum orders the results by the checksum field.
|
||||
func ByChecksum(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldChecksum, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByScope orders the results by the scope field.
|
||||
func ByScope(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldScope, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,669 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package backuprecord
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// ExecutedAt applies equality check predicate on the "executed_at" field. It's identical to ExecutedAtEQ.
|
||||
func ExecutedAt(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldExecutedAt, v))
|
||||
}
|
||||
|
||||
// RangeStart applies equality check predicate on the "range_start" field. It's identical to RangeStartEQ.
|
||||
func RangeStart(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldRangeStart, v))
|
||||
}
|
||||
|
||||
// RangeEnd applies equality check predicate on the "range_end" field. It's identical to RangeEndEQ.
|
||||
func RangeEnd(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldRangeEnd, v))
|
||||
}
|
||||
|
||||
// BackupPath applies equality check predicate on the "backup_path" field. It's identical to BackupPathEQ.
|
||||
func BackupPath(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// TotalSize applies equality check predicate on the "total_size" field. It's identical to TotalSizeEQ.
|
||||
func TotalSize(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldTotalSize, v))
|
||||
}
|
||||
|
||||
// ItemsJSON applies equality check predicate on the "items_json" field. It's identical to ItemsJSONEQ.
|
||||
func ItemsJSON(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||||
func Operator(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// Checksum applies equality check predicate on the "checksum" field. It's identical to ChecksumEQ.
|
||||
func Checksum(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.
|
||||
func Scope(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldScope, v))
|
||||
}
|
||||
|
||||
// ExecutedAtEQ applies the EQ predicate on the "executed_at" field.
|
||||
func ExecutedAtEQ(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldExecutedAt, v))
|
||||
}
|
||||
|
||||
// ExecutedAtNEQ applies the NEQ predicate on the "executed_at" field.
|
||||
func ExecutedAtNEQ(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldExecutedAt, v))
|
||||
}
|
||||
|
||||
// ExecutedAtIn applies the In predicate on the "executed_at" field.
|
||||
func ExecutedAtIn(vs ...int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldExecutedAt, vs...))
|
||||
}
|
||||
|
||||
// ExecutedAtNotIn applies the NotIn predicate on the "executed_at" field.
|
||||
func ExecutedAtNotIn(vs ...int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldExecutedAt, vs...))
|
||||
}
|
||||
|
||||
// ExecutedAtGT applies the GT predicate on the "executed_at" field.
|
||||
func ExecutedAtGT(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldExecutedAt, v))
|
||||
}
|
||||
|
||||
// ExecutedAtGTE applies the GTE predicate on the "executed_at" field.
|
||||
func ExecutedAtGTE(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldExecutedAt, v))
|
||||
}
|
||||
|
||||
// ExecutedAtLT applies the LT predicate on the "executed_at" field.
|
||||
func ExecutedAtLT(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldExecutedAt, v))
|
||||
}
|
||||
|
||||
// ExecutedAtLTE applies the LTE predicate on the "executed_at" field.
|
||||
func ExecutedAtLTE(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldExecutedAt, v))
|
||||
}
|
||||
|
||||
// RangeStartEQ applies the EQ predicate on the "range_start" field.
|
||||
func RangeStartEQ(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldRangeStart, v))
|
||||
}
|
||||
|
||||
// RangeStartNEQ applies the NEQ predicate on the "range_start" field.
|
||||
func RangeStartNEQ(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldRangeStart, v))
|
||||
}
|
||||
|
||||
// RangeStartIn applies the In predicate on the "range_start" field.
|
||||
func RangeStartIn(vs ...int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldRangeStart, vs...))
|
||||
}
|
||||
|
||||
// RangeStartNotIn applies the NotIn predicate on the "range_start" field.
|
||||
func RangeStartNotIn(vs ...int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldRangeStart, vs...))
|
||||
}
|
||||
|
||||
// RangeStartGT applies the GT predicate on the "range_start" field.
|
||||
func RangeStartGT(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldRangeStart, v))
|
||||
}
|
||||
|
||||
// RangeStartGTE applies the GTE predicate on the "range_start" field.
|
||||
func RangeStartGTE(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldRangeStart, v))
|
||||
}
|
||||
|
||||
// RangeStartLT applies the LT predicate on the "range_start" field.
|
||||
func RangeStartLT(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldRangeStart, v))
|
||||
}
|
||||
|
||||
// RangeStartLTE applies the LTE predicate on the "range_start" field.
|
||||
func RangeStartLTE(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldRangeStart, v))
|
||||
}
|
||||
|
||||
// RangeEndEQ applies the EQ predicate on the "range_end" field.
|
||||
func RangeEndEQ(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldRangeEnd, v))
|
||||
}
|
||||
|
||||
// RangeEndNEQ applies the NEQ predicate on the "range_end" field.
|
||||
func RangeEndNEQ(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldRangeEnd, v))
|
||||
}
|
||||
|
||||
// RangeEndIn applies the In predicate on the "range_end" field.
|
||||
func RangeEndIn(vs ...int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldRangeEnd, vs...))
|
||||
}
|
||||
|
||||
// RangeEndNotIn applies the NotIn predicate on the "range_end" field.
|
||||
func RangeEndNotIn(vs ...int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldRangeEnd, vs...))
|
||||
}
|
||||
|
||||
// RangeEndGT applies the GT predicate on the "range_end" field.
|
||||
func RangeEndGT(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldRangeEnd, v))
|
||||
}
|
||||
|
||||
// RangeEndGTE applies the GTE predicate on the "range_end" field.
|
||||
func RangeEndGTE(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldRangeEnd, v))
|
||||
}
|
||||
|
||||
// RangeEndLT applies the LT predicate on the "range_end" field.
|
||||
func RangeEndLT(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldRangeEnd, v))
|
||||
}
|
||||
|
||||
// RangeEndLTE applies the LTE predicate on the "range_end" field.
|
||||
func RangeEndLTE(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldRangeEnd, v))
|
||||
}
|
||||
|
||||
// BackupPathEQ applies the EQ predicate on the "backup_path" field.
|
||||
func BackupPathEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathNEQ applies the NEQ predicate on the "backup_path" field.
|
||||
func BackupPathNEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathIn applies the In predicate on the "backup_path" field.
|
||||
func BackupPathIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldBackupPath, vs...))
|
||||
}
|
||||
|
||||
// BackupPathNotIn applies the NotIn predicate on the "backup_path" field.
|
||||
func BackupPathNotIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldBackupPath, vs...))
|
||||
}
|
||||
|
||||
// BackupPathGT applies the GT predicate on the "backup_path" field.
|
||||
func BackupPathGT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathGTE applies the GTE predicate on the "backup_path" field.
|
||||
func BackupPathGTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathLT applies the LT predicate on the "backup_path" field.
|
||||
func BackupPathLT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathLTE applies the LTE predicate on the "backup_path" field.
|
||||
func BackupPathLTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathContains applies the Contains predicate on the "backup_path" field.
|
||||
func BackupPathContains(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContains(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathHasPrefix applies the HasPrefix predicate on the "backup_path" field.
|
||||
func BackupPathHasPrefix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasPrefix(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathHasSuffix applies the HasSuffix predicate on the "backup_path" field.
|
||||
func BackupPathHasSuffix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasSuffix(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathEqualFold applies the EqualFold predicate on the "backup_path" field.
|
||||
func BackupPathEqualFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEqualFold(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// BackupPathContainsFold applies the ContainsFold predicate on the "backup_path" field.
|
||||
func BackupPathContainsFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContainsFold(FieldBackupPath, v))
|
||||
}
|
||||
|
||||
// TotalSizeEQ applies the EQ predicate on the "total_size" field.
|
||||
func TotalSizeEQ(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldTotalSize, v))
|
||||
}
|
||||
|
||||
// TotalSizeNEQ applies the NEQ predicate on the "total_size" field.
|
||||
func TotalSizeNEQ(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldTotalSize, v))
|
||||
}
|
||||
|
||||
// TotalSizeIn applies the In predicate on the "total_size" field.
|
||||
func TotalSizeIn(vs ...int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldTotalSize, vs...))
|
||||
}
|
||||
|
||||
// TotalSizeNotIn applies the NotIn predicate on the "total_size" field.
|
||||
func TotalSizeNotIn(vs ...int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldTotalSize, vs...))
|
||||
}
|
||||
|
||||
// TotalSizeGT applies the GT predicate on the "total_size" field.
|
||||
func TotalSizeGT(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldTotalSize, v))
|
||||
}
|
||||
|
||||
// TotalSizeGTE applies the GTE predicate on the "total_size" field.
|
||||
func TotalSizeGTE(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldTotalSize, v))
|
||||
}
|
||||
|
||||
// TotalSizeLT applies the LT predicate on the "total_size" field.
|
||||
func TotalSizeLT(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldTotalSize, v))
|
||||
}
|
||||
|
||||
// TotalSizeLTE applies the LTE predicate on the "total_size" field.
|
||||
func TotalSizeLTE(v int64) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldTotalSize, v))
|
||||
}
|
||||
|
||||
// ItemsJSONEQ applies the EQ predicate on the "items_json" field.
|
||||
func ItemsJSONEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONNEQ applies the NEQ predicate on the "items_json" field.
|
||||
func ItemsJSONNEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONIn applies the In predicate on the "items_json" field.
|
||||
func ItemsJSONIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldItemsJSON, vs...))
|
||||
}
|
||||
|
||||
// ItemsJSONNotIn applies the NotIn predicate on the "items_json" field.
|
||||
func ItemsJSONNotIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldItemsJSON, vs...))
|
||||
}
|
||||
|
||||
// ItemsJSONGT applies the GT predicate on the "items_json" field.
|
||||
func ItemsJSONGT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONGTE applies the GTE predicate on the "items_json" field.
|
||||
func ItemsJSONGTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONLT applies the LT predicate on the "items_json" field.
|
||||
func ItemsJSONLT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONLTE applies the LTE predicate on the "items_json" field.
|
||||
func ItemsJSONLTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONContains applies the Contains predicate on the "items_json" field.
|
||||
func ItemsJSONContains(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContains(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONHasPrefix applies the HasPrefix predicate on the "items_json" field.
|
||||
func ItemsJSONHasPrefix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasPrefix(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONHasSuffix applies the HasSuffix predicate on the "items_json" field.
|
||||
func ItemsJSONHasSuffix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasSuffix(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONEqualFold applies the EqualFold predicate on the "items_json" field.
|
||||
func ItemsJSONEqualFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEqualFold(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// ItemsJSONContainsFold applies the ContainsFold predicate on the "items_json" field.
|
||||
func ItemsJSONContainsFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContainsFold(FieldItemsJSON, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||||
func OperatorEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||||
func OperatorNEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorIn applies the In predicate on the "operator" field.
|
||||
func OperatorIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||||
func OperatorNotIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldOperator, vs...))
|
||||
}
|
||||
|
||||
// OperatorGT applies the GT predicate on the "operator" field.
|
||||
func OperatorGT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||||
func OperatorGTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLT applies the LT predicate on the "operator" field.
|
||||
func OperatorLT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||||
func OperatorLTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContains applies the Contains predicate on the "operator" field.
|
||||
func OperatorContains(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContains(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||||
func OperatorHasPrefix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasPrefix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||||
func OperatorHasSuffix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasSuffix(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||||
func OperatorEqualFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEqualFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||||
func OperatorContainsFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContainsFold(FieldOperator, v))
|
||||
}
|
||||
|
||||
// ChecksumEQ applies the EQ predicate on the "checksum" field.
|
||||
func ChecksumEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumNEQ applies the NEQ predicate on the "checksum" field.
|
||||
func ChecksumNEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumIn applies the In predicate on the "checksum" field.
|
||||
func ChecksumIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldChecksum, vs...))
|
||||
}
|
||||
|
||||
// ChecksumNotIn applies the NotIn predicate on the "checksum" field.
|
||||
func ChecksumNotIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldChecksum, vs...))
|
||||
}
|
||||
|
||||
// ChecksumGT applies the GT predicate on the "checksum" field.
|
||||
func ChecksumGT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumGTE applies the GTE predicate on the "checksum" field.
|
||||
func ChecksumGTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumLT applies the LT predicate on the "checksum" field.
|
||||
func ChecksumLT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumLTE applies the LTE predicate on the "checksum" field.
|
||||
func ChecksumLTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumContains applies the Contains predicate on the "checksum" field.
|
||||
func ChecksumContains(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContains(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumHasPrefix applies the HasPrefix predicate on the "checksum" field.
|
||||
func ChecksumHasPrefix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasPrefix(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumHasSuffix applies the HasSuffix predicate on the "checksum" field.
|
||||
func ChecksumHasSuffix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasSuffix(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumEqualFold applies the EqualFold predicate on the "checksum" field.
|
||||
func ChecksumEqualFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEqualFold(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ChecksumContainsFold applies the ContainsFold predicate on the "checksum" field.
|
||||
func ChecksumContainsFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContainsFold(FieldChecksum, v))
|
||||
}
|
||||
|
||||
// ScopeEQ applies the EQ predicate on the "scope" field.
|
||||
func ScopeEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEQ(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeNEQ applies the NEQ predicate on the "scope" field.
|
||||
func ScopeNEQ(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNEQ(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeIn applies the In predicate on the "scope" field.
|
||||
func ScopeIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldIn(FieldScope, vs...))
|
||||
}
|
||||
|
||||
// ScopeNotIn applies the NotIn predicate on the "scope" field.
|
||||
func ScopeNotIn(vs ...string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldNotIn(FieldScope, vs...))
|
||||
}
|
||||
|
||||
// ScopeGT applies the GT predicate on the "scope" field.
|
||||
func ScopeGT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGT(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeGTE applies the GTE predicate on the "scope" field.
|
||||
func ScopeGTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldGTE(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeLT applies the LT predicate on the "scope" field.
|
||||
func ScopeLT(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLT(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeLTE applies the LTE predicate on the "scope" field.
|
||||
func ScopeLTE(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldLTE(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeContains applies the Contains predicate on the "scope" field.
|
||||
func ScopeContains(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContains(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.
|
||||
func ScopeHasPrefix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasPrefix(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.
|
||||
func ScopeHasSuffix(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldHasSuffix(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeEqualFold applies the EqualFold predicate on the "scope" field.
|
||||
func ScopeEqualFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldEqualFold(FieldScope, v))
|
||||
}
|
||||
|
||||
// ScopeContainsFold applies the ContainsFold predicate on the "scope" field.
|
||||
func ScopeContainsFold(v string) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.FieldContainsFold(FieldScope, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.BackupRecord) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.BackupRecord) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.BackupRecord) predicate.BackupRecord {
|
||||
return predicate.BackupRecord(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user