Files
packager/.sqlx/query-48c563fdbc8ca0dbe14726eda25a18780c6c416eda63b246daa75c5ff318331d.json
2023-09-11 20:12:49 +02:00

21 lines
820 B
JSON

{
"db_name": "SQLite",
"query": "\n SELECT\n CAST(IFNULL(SUM(i_item.weight), 0) AS INTEGER) AS total_weight\n FROM trips AS trip\n INNER JOIN trips_items AS t_item\n ON t_item.trip_id = trip.id\n INNER JOIN inventory_items AS i_item\n ON t_item.item_id = i_item.id\n WHERE\n trip.id = ? AND trip.user_id = ?\n AND t_item.pick = true\n ",
"describe": {
"columns": [
{
"name": "total_weight",
"ordinal": 0,
"type_info": "Int"
}
],
"parameters": {
"Right": 2
},
"nullable": [
false
]
},
"hash": "48c563fdbc8ca0dbe14726eda25a18780c6c416eda63b246daa75c5ff318331d"
}