mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
256 lines
6.8 KiB
JSON
256 lines
6.8 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n INSERT INTO file_object_variants (\n storage_backend, object_key, original_storage_backend, original_object_key,\n group_id, variant_key, label, url, mime_type, size_bytes, width, height,\n is_original, lossy, quality, sort_order, metadata\n )\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17)\n ON CONFLICT (storage_backend, object_key)\n DO UPDATE SET\n original_storage_backend = EXCLUDED.original_storage_backend,\n original_object_key = EXCLUDED.original_object_key,\n group_id = EXCLUDED.group_id,\n variant_key = EXCLUDED.variant_key,\n label = EXCLUDED.label,\n url = EXCLUDED.url,\n mime_type = EXCLUDED.mime_type,\n size_bytes = EXCLUDED.size_bytes,\n width = EXCLUDED.width,\n height = EXCLUDED.height,\n is_original = EXCLUDED.is_original,\n lossy = EXCLUDED.lossy,\n quality = EXCLUDED.quality,\n sort_order = EXCLUDED.sort_order,\n metadata = EXCLUDED.metadata\n RETURNING storage_backend, object_key, original_storage_backend, original_object_key,\n group_id, variant_key, label, url, mime_type, size_bytes, width, height,\n is_original, lossy, quality, sort_order,\n NULL::JSONB AS \"object_access?: crate::models::FileObjectAccess\",\n metadata AS \"metadata!: FileVariantMetadata\",\n created_at\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "storage_backend",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "storage_backend"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "object_key",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "object_key"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "original_storage_backend",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "original_storage_backend"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "original_object_key",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "original_object_key"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "group_id",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "group_id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "variant_key",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "variant_key"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "label",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "label"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "url",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "url"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "mime_type",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "mime_type"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "size_bytes",
|
|
"type_info": "Int8",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "size_bytes"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 10,
|
|
"name": "width",
|
|
"type_info": "Int4",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "width"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 11,
|
|
"name": "height",
|
|
"type_info": "Int4",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "height"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 12,
|
|
"name": "is_original",
|
|
"type_info": "Bool",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "is_original"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 13,
|
|
"name": "lossy",
|
|
"type_info": "Bool",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "lossy"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 14,
|
|
"name": "quality",
|
|
"type_info": "Int4",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "quality"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 15,
|
|
"name": "sort_order",
|
|
"type_info": "Int4",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "sort_order"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 16,
|
|
"name": "object_access?: crate::models::FileObjectAccess",
|
|
"type_info": "Jsonb",
|
|
"origin": "Expression"
|
|
},
|
|
{
|
|
"ordinal": 17,
|
|
"name": "metadata!: FileVariantMetadata",
|
|
"type_info": "Jsonb",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "metadata"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 18,
|
|
"name": "created_at",
|
|
"type_info": "Timestamptz",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "file_object_variants",
|
|
"name": "created_at"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Int8",
|
|
"Int4",
|
|
"Int4",
|
|
"Bool",
|
|
"Bool",
|
|
"Int4",
|
|
"Int4",
|
|
"Jsonb"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
null,
|
|
false,
|
|
false
|
|
]
|
|
},
|
|
"hash": "7da951f79a0ee45101804f8ce65788d205c43e432ad8c738719fcfa96a023966"
|
|
}
|