unified-storage: add BatchDelete support to sqlkv implementation (#115573)

This commit is contained in:
Renato Costa
2025-12-19 09:15:23 -05:00
committed by GitHub
parent 19c9f21cc4
commit 338ae95ef5
4 changed files with 63 additions and 41 deletions
@@ -0,0 +1,7 @@
DELETE
FROM {{ .TableName }}
WHERE {{ .Ident "key_path" }} IN (
{{ range $id, $key_path := .KeyPaths }}
{{ if ne $id 0 }}, {{ end }}{{ $.Arg $key_path }}
{{ end }}
);