From 66a59df6abad55be8277a5b357812229778b8d9f Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Wed, 20 Nov 2024 08:06:07 -0800 Subject: [PATCH] temp: get and update --- queries/records/get_and_update.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 queries/records/get_and_update.sql diff --git a/queries/records/get_and_update.sql b/queries/records/get_and_update.sql new file mode 100644 index 0000000..52ba101 --- /dev/null +++ b/queries/records/get_and_update.sql @@ -0,0 +1,8 @@ +UPDATE record +SET downloads = downloads + 1 +WHERE cache_name = ? +RETURNING + cache_name, + uploaded, + downloads, + max_downloads;