Files
packager/.sqlx/query-dd3f7d321b59961e4ab8a8c0946de1aff32eae0c645e9c544b48926f7ca16a66.json

33 lines
1.2 KiB
JSON
Raw Permalink Normal View History

2023-08-29 21:34:00 +02:00
{
"db_name": "SQLite",
2023-08-29 21:34:00 +02:00
"query": "\n SELECT\n type.id as id,\n type.name as name,\n inner.id IS NOT NULL AS active\n FROM trips_types AS type\n LEFT JOIN (\n SELECT type.id as id, trip.user_id as user_id\n FROM trips as trip\n INNER JOIN trips_to_trips_types as ttt\n ON ttt.trip_id = trip.id\n INNER JOIN trips_types AS type\n ON type.id == ttt.trip_type_id\n WHERE trip.id = ? AND trip.user_id = ?\n ) AS inner\n ON inner.id = type.id\n WHERE type.user_id = ?\n ",
2023-08-29 21:34:00 +02:00
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "active",
"ordinal": 2,
"type_info": "Int"
}
],
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 3
2023-08-29 21:34:00 +02:00
},
"nullable": [
false,
false,
false
]
},
2023-08-29 21:34:00 +02:00
"hash": "dd3f7d321b59961e4ab8a8c0946de1aff32eae0c645e9c544b48926f7ca16a66"
2023-08-29 21:34:00 +02:00
}