likwid/backend/.sqlx/query-3271a11a6d1ad3cc05deda6d3e33bd350180c0b20da49b88c5bc04d5f06eb927.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"db_name": "PostgreSQL",
"query": "SELECT \n total_delegations,\n unique_delegators,\n unique_delegates,\n max_chain_depth,\n avg_chain_depth::float8 AS avg_chain_depth,\n top_10_delegate_share::float8 AS top_10_share,\n herfindahl_index::float8 AS hhi,\n effective_delegates\n FROM delegation_analytics\n WHERE community_id = $1\n ORDER BY snapshot_date DESC\n LIMIT 1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "total_delegations",
"type_info": "Int4"
},
{
"ordinal": 1,
"name": "unique_delegators",
"type_info": "Int4"
},
{
"ordinal": 2,
"name": "unique_delegates",
"type_info": "Int4"
},
{
"ordinal": 3,
"name": "max_chain_depth",
"type_info": "Int4"
},
{
"ordinal": 4,
"name": "avg_chain_depth",
"type_info": "Float8"
},
{
"ordinal": 5,
"name": "top_10_share",
"type_info": "Float8"
},
{
"ordinal": 6,
"name": "hhi",
"type_info": "Float8"
},
{
"ordinal": 7,
"name": "effective_delegates",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false,
false,
false,
false,
null,
null,
null,
true
]
},
"hash": "3271a11a6d1ad3cc05deda6d3e33bd350180c0b20da49b88c5bc04d5f06eb927"
}