4 ms·
The design is fundamentally flawed, with queries in close to hundred .js files. Perhaps you marker and sell a few, but it looks insecure and would be hard to r
by oxfordmale 1y ago
The design is fundamentally flawed, with queries in close to hundred .js files.
Perhaps you marker and sell a few, but it looks insecure and would be hard to refactor.
- brainless 1y agoAre you sure of queries in `.js` files? Or do you mean `.rs` files? grep -r -i --include="*.jsx" --include="*.tsx" "SELECT\|INSERT\|UPDATE\|DELETE" ./adminapp grep -r -i --include="*.jsx" --include="*.tsx" "SELECT\|INSERT\|UPDATE\|DELETE" ./menuapp
- oxfordmale 1y agoApologies, they are in JSON files. GitHub truncated the last two characters on my mobile. https://github.com/brainless/letsorder/blob/main/backend/.sqlx/query-018d70f5157fc2c0ff0cac0f02a2ad39eeae3a54e529cee82f100ade9fb6e66f.json https://github.com/brainless/letsorder/blob/main/backend/.sq...
- brainless 1y agoI had the same doubt early on, I had asked Claude and checked this: https://docs.rs/sqlx/latest/sqlx/macro.query.html#offline-mode https://docs.rs/sqlx/latest/sqlx/macro.query.html#offline-mo... Looks like we are supposed to check them into version control.