Unistore: Add generation column (#102222)

This commit is contained in:
Ryan McKinley
2025-04-01 20:38:23 +03:00
committed by GitHub
parent cd30742616
commit 9c49c601f1
19 changed files with 194 additions and 87 deletions
+4 -2
View File
@@ -75,6 +75,7 @@ type sqlResourceRequest struct {
sqltemplate.SQLTemplate
GUID string
WriteEvent resource.WriteEvent
Generation int64
Folder string
// Useful when batch writing
@@ -305,8 +306,9 @@ func (r sqlGetHistoryRequest) Validate() error {
// prune resource history
type sqlPruneHistoryRequest struct {
sqltemplate.SQLTemplate
Key *resource.ResourceKey
HistoryLimit int64
Key *resource.ResourceKey
PartitionByGeneration bool // include generation in the partition
HistoryLimit int64
}
func (r *sqlPruneHistoryRequest) Validate() error {