doc: database query doc

This commit is contained in:
Zynh Ludwig 2025-01-14 17:55:17 -08:00
parent e7b28b3214
commit 75d0af7ce8

11
queries/README.md Normal file
View file

@ -0,0 +1,11 @@
# Database Queries
Because I chose sqlx, lots of the sql files have weird aliasing, such as this;
```sql
SELECT cache_name AS "cache_name: _"
FROM records
LIMIT ? OFFSET ?
```
See: <https://docs.rs/sqlx/latest/sqlx/macro.query_as.html#column-type-override-infer-from-struct-field>