12 lines
284 B
Markdown
12 lines
284 B
Markdown
|
# 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>
|