104 lines
2.7 KiB
JSON
104 lines
2.7 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n UPDATE hero_blocks \n SET title = COALESCE($1, title),\n subtitle = COALESCE($2, subtitle),\n background_image = COALESCE($3, background_image),\n background_color = COALESCE($4, background_color),\n text_color = COALESCE($5, text_color),\n cta_text = COALESCE($6, cta_text),\n cta_link = COALESCE($7, cta_link),\n block_order = COALESCE($8, block_order),\n is_active = COALESCE($9, is_active),\n updated_at = NOW()\n WHERE id = $10\n RETURNING id, page_id, block_order, title, subtitle, background_image, background_color, text_color, cta_text, cta_link, is_active, \n created_at as \"created_at: DateTime<Utc>\", \n updated_at as \"updated_at: DateTime<Utc>\"\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "page_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "block_order",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "title",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "subtitle",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "background_image",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "background_color",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "text_color",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "cta_text",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "cta_link",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 10,
|
|
"name": "is_active",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 11,
|
|
"name": "created_at: DateTime<Utc>",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 12,
|
|
"name": "updated_at: DateTime<Utc>",
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Varchar",
|
|
"Text",
|
|
"Varchar",
|
|
"Varchar",
|
|
"Varchar",
|
|
"Varchar",
|
|
"Varchar",
|
|
"Int4",
|
|
"Bool",
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false
|
|
]
|
|
},
|
|
"hash": "76ebd5c5e6d6234192b323dcbc1ad30a115851dd6664a6538fe5b85586edb0fc"
|
|
}
|