Commit 5cfa159
committed
docs(tests): document inline SQL pattern rationale
Add documentation to assert_compare! macro explaining why format!
is used for SQL construction instead of parameterized queries.
SQLx cannot pass PostgreSQL function calls (like create_encrypted_json)
as query parameters - they must be evaluated by PostgreSQL as part of
the SQL string.
Addresses FINAL_CODE_REVIEW.md recommendation #6 (P3).1 parent 1be11a3 commit 5cfa159
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| |||
0 commit comments