doc: database query doc
This commit is contained in:
parent
e7b28b3214
commit
75d0af7ce8
1 changed files with 11 additions and 0 deletions
11
queries/README.md
Normal file
11
queries/README.md
Normal 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>
|
Loading…
Reference in a new issue