From 1f70f2e990c072b23cf17665ba7b757f9e8418b8 Mon Sep 17 00:00:00 2001 From: Brennan Lamey Date: Wed, 23 Oct 2024 12:10:25 -0500 Subject: [PATCH] remove test kuneiform file --- t.kf | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 t.kf diff --git a/t.kf b/t.kf deleted file mode 100644 index 3c366aee6..000000000 --- a/t.kf +++ /dev/null @@ -1,38 +0,0 @@ -database aa; - -table ids { - id uuid primary key -} - -procedure crash($count int) public { - for $i in 1..$count { - INSERT INTO ids(id) VALUES(uuid_generate_v5('eeab0e48-eeee-4612-9dee-1fef36ec201f'::uuid, $i::text||@txid)); - } -} - -procedure migrate() public { - for $row in SELECT * FROM ids { - INSERT INTO ids(id) VALUES($row.id); - } -} - -WITH RECURSIVE cte1 AS ( - -- Base case - SELECT 1 AS n - UNION ALL - -- Recursive case - SELECT n + 1 - FROM cte1 - WHERE n < 5 -), -cte2 AS ( - -- Base case - SELECT 10 AS m - UNION ALL - -- Recursive case - SELECT m + 2 - FROM cte2 - WHERE m < 20 -) -SELECT * -FROM cte1, cte2;