Skip to main content

max / makenotwork

529 B · 23 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "SELECT COALESCE(GREATEST(0, LEAST(SUM(file_size_bytes), 9223372036854775807))::BIGINT, 0) AS \"total!\" FROM versions WHERE item_id = $1 AND file_size_bytes IS NOT NULL",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "total!",
9 "type_info": "Int8"
10 }
11 ],
12 "parameters": {
13 "Left": [
14 "Uuid"
15 ]
16 },
17 "nullable": [
18 null
19 ]
20 },
21 "hash": "370447656ea852b6e6809b09dee981278988a972682902d257eedd6969257966"
22 }
23