nyazoom/queries/records/new_record.sql

7 lines
197 B
SQL

INSERT INTO records (cache_name, max_downloads)
VALUES (?, ?)
RETURNING
cache_name,
uploaded AS "uploaded: _",
downloads AS "downloads: i32",
max_downloads AS "max_downloads: i32";