SQL/Blob: Add support for blob storage to SQL backend (#98192)
This commit is contained in:
26
pkg/storage/unified/sql/data/resource_blob_insert.sql
Normal file
26
pkg/storage/unified/sql/data/resource_blob_insert.sql
Normal 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 }}
|
||||
)
|
||||
;
|
||||
Reference in New Issue
Block a user