nyazoom/queries/records/get_cache_names_page.sql

6 lines
251 B
MySQL
Raw Permalink Normal View History

2024-11-21 14:45:08 +00:00
-- The funny alias used here is to allow sqlx to do type inference on columns
-- See: https://docs.rs/sqlx/latest/sqlx/macro.query_as.html#column-type-override-infer-from-struct-field
SELECT cache_name AS "cache_name: _"
FROM records
LIMIT ? OFFSET ?