put sql statements in separate files

This commit is contained in:
Khaïs COLIN 2025-10-19 17:58:02 +02:00
parent 1bb63b1fa4
commit 080bb80956
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
6 changed files with 107 additions and 17 deletions

12
src/get_food.sql Normal file
View file

@ -0,0 +1,12 @@
SELECT
id,
portion,
name,
kc_per_serving,
target_servings,
actual_servings,
color
FROM
food
WHERE
id = ?1