mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-10 13:33:09 +00:00
62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT u.id as user_id,\n u.username,\n dp.display_name,\n dp.bio,\n COALESCE(dp.accepting_delegations, TRUE) as \"accepting_delegations!\",\n dp.delegation_policy,\n COALESCE(dp.total_delegators, 0) as \"total_delegators!\",\n COALESCE(dp.total_votes_cast, 0) as \"total_votes_cast!\"\n FROM users u\n LEFT JOIN delegate_profiles dp ON dp.user_id = u.id\n WHERE COALESCE(dp.accepting_delegations, TRUE) = TRUE\n ORDER BY COALESCE(dp.total_delegators, 0) DESC\n LIMIT 50",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "user_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "username",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "display_name",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "bio",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "accepting_delegations!",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "delegation_policy",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "total_delegators!",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "total_votes_cast!",
|
|
"type_info": "Int4"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
null,
|
|
true,
|
|
null,
|
|
null
|
|
]
|
|
},
|
|
"hash": "d007217c665a2e67a43699fde6ae589a578afd1ac1300eda6dae81b143426e24"
|
|
}
|