mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-10 13:33:09 +00:00
32 lines
1.2 KiB
JSON
32 lines
1.2 KiB
JSON
|
|
{
|
||
|
|
"db_name": "PostgreSQL",
|
||
|
|
"query": "\n INSERT INTO community_plugins (community_id, plugin_id, settings, is_active)\n VALUES ($1, $2, COALESCE($3, '{}'::jsonb), COALESCE($4, true))\n ON CONFLICT (community_id, plugin_id)\n DO UPDATE SET\n settings = COALESCE($3, community_plugins.settings),\n is_active = COALESCE($4, community_plugins.is_active),\n activated_at = CASE\n WHEN COALESCE($4, community_plugins.is_active) = true AND community_plugins.is_active = false THEN NOW()\n ELSE community_plugins.activated_at\n END\n RETURNING is_active as community_is_active,\n settings as \"settings!: serde_json::Value\"\n ",
|
||
|
|
"describe": {
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"ordinal": 0,
|
||
|
|
"name": "community_is_active",
|
||
|
|
"type_info": "Bool"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 1,
|
||
|
|
"name": "settings!: serde_json::Value",
|
||
|
|
"type_info": "Jsonb"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": {
|
||
|
|
"Left": [
|
||
|
|
"Uuid",
|
||
|
|
"Uuid",
|
||
|
|
"Jsonb",
|
||
|
|
"Bool"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"nullable": [
|
||
|
|
false,
|
||
|
|
false
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"hash": "6b3fef1781daf9672ad11cbc1e2d84e536ff7ee9b3cef4d5f517a2ed27c586c4"
|
||
|
|
}
|