likwid/backend/.sqlx/query-132ee5d7ab197b3a1d3bce2740f419e3cc2311e3cf0bbd0dfe821eebb4ca4fe0.json

57 lines
1.7 KiB
JSON
Raw Normal View History

{
"db_name": "PostgreSQL",
"query": "INSERT INTO delegate_profiles (user_id, display_name, bio, accepting_delegations, delegation_policy)\n VALUES ($1, $2, $3, $4, $5)\n ON CONFLICT (user_id) DO UPDATE SET \n display_name = COALESCE($2, delegate_profiles.display_name),\n bio = COALESCE($3, delegate_profiles.bio),\n accepting_delegations = COALESCE($4, delegate_profiles.accepting_delegations),\n delegation_policy = COALESCE($5, delegate_profiles.delegation_policy),\n updated_at = NOW()\n RETURNING display_name, bio, accepting_delegations, delegation_policy, \n total_delegators, total_votes_cast",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "display_name",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "bio",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "accepting_delegations",
"type_info": "Bool"
},
{
"ordinal": 3,
"name": "delegation_policy",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "total_delegators",
"type_info": "Int4"
},
{
"ordinal": 5,
"name": "total_votes_cast",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Uuid",
"Varchar",
"Text",
"Bool",
"Text"
]
},
"nullable": [
true,
true,
false,
true,
false,
false
]
},
"hash": "132ee5d7ab197b3a1d3bce2740f419e3cc2311e3cf0bbd0dfe821eebb4ca4fe0"
}