mmap/.sqlx/query-fbdc7145f7560c576e3e5db15fe014bcff5ce490b18ab012fe6f8cfcff14bac6.json
Tsuki d4448c6129
Some checks are pending
Docker Build and Push / build (push) Waiting to run
sync: add settings
2025-08-11 00:05:52 +08:00

39 lines
1021 B
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT \n category,\n COUNT(*) as count,\n COUNT(CASE WHEN is_system = true THEN 1 END) as system_count,\n COUNT(CASE WHEN is_editable = true THEN 1 END) as editable_count\n FROM settings \n GROUP BY category\n ORDER BY category\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "category",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "count",
"type_info": "Int8"
},
{
"ordinal": 2,
"name": "system_count",
"type_info": "Int8"
},
{
"ordinal": 3,
"name": "editable_count",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
true,
null,
null,
null
]
},
"hash": "fbdc7145f7560c576e3e5db15fe014bcff5ce490b18ab012fe6f8cfcff14bac6"
}