From fcb9a99b8f1d8759cc90310ff4109223216c1624 Mon Sep 17 00:00:00 2001 From: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com> Date: Tue, 28 May 2024 19:56:27 +1200 Subject: [PATCH] chore: remove the unused procedures (#35) --- procedures/count_client_records.sql | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 procedures/count_client_records.sql diff --git a/procedures/count_client_records.sql b/procedures/count_client_records.sql deleted file mode 100644 index 68a9545..0000000 --- a/procedures/count_client_records.sql +++ /dev/null @@ -1,16 +0,0 @@ -/** - Procedure to count the number of records in the table for a given service - */ -create or replace procedure count_client_records(serviceId text, _num_of_records inout integer DEFAULT NULL) -language plpgsql -as $$ -begin - SELECT COUNT(id) - FROM "Log" - WHERE "serviceId"=serviceId - INTO _num_of_records; - - commit; -end;$$ -/* Execure count_client_records procedure */ -call count_client_records('serviceId', null); \ No newline at end of file