Storage: Add resource version matching in unified storage API (#102417)
Add NotOlderThan support to getHistory Add support for Exact Add tests Refactor tests Add error test Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com>
This commit is contained in:
@@ -18,4 +18,10 @@ WHERE 1 = 1
|
||||
{{ if (gt .StartRV 0) }}
|
||||
AND {{ .Ident "resource_version" }} < {{ .Arg .StartRV }}
|
||||
{{ end }}
|
||||
{{ if (gt .MinRV 0) }}
|
||||
AND {{ .Ident "resource_version" }} >= {{ .Arg .MinRV }}
|
||||
{{ end }}
|
||||
{{ if (gt .ExactRV 0) }}
|
||||
AND {{ .Ident "resource_version" }} = {{ .Arg .ExactRV }}
|
||||
{{ end }}
|
||||
ORDER BY resource_version DESC
|
||||
|
||||
Reference in New Issue
Block a user