41 lines
827 B
JSON
41 lines
827 B
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT kjoules, proteins, carbohydrates, fats FROM meals m WHERE is_latest = TRUE AND LOWER(\"name\") = $1 ORDER BY date DESC LIMIT 1;",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "kjoules",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "proteins",
|
|
"type_info": "Numeric"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "carbohydrates",
|
|
"type_info": "Numeric"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "fats",
|
|
"type_info": "Numeric"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
},
|
|
"nullable": [
|
|
true,
|
|
true,
|
|
true,
|
|
true
|
|
]
|
|
},
|
|
"hash": "a08588e594190460891c0e545b9983594e837f8da93db0d7c03e8ef16b9d0e3b"
|
|
}
|