SQL/Blob: Add support for blob storage to SQL backend (#98192)

This commit is contained in:
Ryan McKinley
2025-01-08 23:08:10 +03:00
committed by GitHub
parent 3e68731600
commit 429da7fd68
18 changed files with 478 additions and 13 deletions

View File

@@ -0,0 +1,26 @@
INSERT INTO {{ .Ident "resource_blob" }}
(
{{ .Ident "uuid" }},
{{ .Ident "created" }},
{{ .Ident "group" }},
{{ .Ident "resource" }},
{{ .Ident "namespace" }},
{{ .Ident "name" }},
{{ .Ident "value" }},
{{ .Ident "hash" }},
{{ .Ident "content_type" }}
)
VALUES (
{{ .Arg .Info.UID }},
{{ .Arg .Now }},
{{ .Arg .Key.Group }},
{{ .Arg .Key.Resource }},
{{ .Arg .Key.Namespace }},
{{ .Arg .Key.Name }},
{{ .Arg .Value }},
{{ .Arg .Info.Hash }},
{{ .Arg .ContentType }}
)
;