likwid/backend/.sqlx/query-3316c52a6ddc9891f4482e6f5df622147b1be87d0723bf709d6d7def94eb1a0c.json

31 lines
993 B
JSON
Raw Permalink Normal View History

{
"db_name": "PostgreSQL",
"query": "UPDATE delegations \n SET is_active = FALSE, revoked_at = NOW()\n WHERE delegator_id = $1 \n AND scope = $2::delegation_scope\n AND is_active = TRUE\n AND (community_id = $3 OR ($3 IS NULL AND community_id IS NULL))\n AND (topic_id = $4 OR ($4 IS NULL AND topic_id IS NULL))\n AND (proposal_id = $5 OR ($5 IS NULL AND proposal_id IS NULL))",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
{
"Custom": {
"name": "delegation_scope",
"kind": {
"Enum": [
"global",
"community",
"topic",
"proposal"
]
}
}
},
"Uuid",
"Uuid",
"Uuid"
]
},
"nullable": []
},
"hash": "3316c52a6ddc9891f4482e6f5df622147b1be87d0723bf709d6d7def94eb1a0c"
}