snapshot of https://github.com/sqlc-dev/sqlc.git (main, 2026-09-16; blobs > 131072B omitted)
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled

This commit is contained in:
upstream-mirror
2026-09-16 02:17:34 +05:00
commit 0f4df23290
7340 changed files with 238743 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
-- Create a user
INSERT INTO users (name, email) VALUES ('John''s', 'john@example.com'); -- comment;
/* Multi-line
comment with ; */
CREATE FUNCTION test() RETURNS text AS $$
BEGIN
-- Internal comment
RETURN 'test;value';
END;
$$ LANGUAGE plpgsql;
SELECT "weird;column" FROM users WHERE name = 'test;value';

View File

@@ -0,0 +1,2 @@
-- Create a user
INSERT INTO users (name, email) VALUES ('John''s', 'john@example.com'); -- comment;

View File

@@ -0,0 +1,8 @@
/* Multi-line
comment with ; */
CREATE FUNCTION test() RETURNS text AS $$
BEGIN
-- Internal comment
RETURN 'test;value';
END;
$$ LANGUAGE plpgsql;

View File

@@ -0,0 +1 @@
SELECT "weird;column" FROM users WHERE name = 'test;value';

View File

@@ -0,0 +1,3 @@
SELECT $$Line 1
Line 2; with semicolon
Line 3$$;

View File

@@ -0,0 +1,3 @@
SELECT $$Line 1
Line 2; with semicolon
Line 3$$;

View File

@@ -0,0 +1,5 @@
CREATE FUNCTION foo() RETURNS text AS $$
BEGIN
RETURN 'test;';
END;
$$ LANGUAGE plpgsql;

View File

@@ -0,0 +1,5 @@
CREATE FUNCTION foo() RETURNS text AS $$
BEGIN
RETURN 'test;';
END;
$$ LANGUAGE plpgsql;

View File

@@ -0,0 +1 @@
SELECT $$This has a ; semicolon$$;

View File

@@ -0,0 +1 @@
SELECT $$This has a ; semicolon$$;

View File

@@ -0,0 +1 @@
SELECT "column;name" FROM "table;name";

View File

@@ -0,0 +1 @@
SELECT "column;name" FROM "table;name";

View File

View File

@@ -0,0 +1 @@
SELECT "column""name" FROM users;

View File

@@ -0,0 +1 @@
SELECT "column""name" FROM users;

View File

@@ -0,0 +1 @@
INSERT INTO users (name) VALUES ('It''s a test');

View File

@@ -0,0 +1 @@
INSERT INTO users (name) VALUES ('It''s a test');

View File

@@ -0,0 +1,2 @@
SELECT * FROM users;
INSERT INTO posts (title) VALUES ('Test')

View File

@@ -0,0 +1 @@
SELECT * FROM users;

View File

@@ -0,0 +1 @@
INSERT INTO posts (title) VALUES ('Test')

View File

@@ -0,0 +1,3 @@
SELECT * FROM users /* this is
a multi-line comment */;
SELECT * FROM posts;

View File

@@ -0,0 +1,2 @@
SELECT * FROM users /* this is
a multi-line comment */;

View File

@@ -0,0 +1 @@
SELECT * FROM posts;

View File

@@ -0,0 +1,2 @@
SELECT * FROM users /* this has ; in it */;
SELECT * FROM posts;

View File

@@ -0,0 +1 @@
SELECT * FROM users /* this has ; in it */;

View File

@@ -0,0 +1 @@
SELECT * FROM posts;

View File

@@ -0,0 +1,3 @@
SELECT * FROM users;
INSERT INTO users (name) VALUES ('John');
DELETE FROM users WHERE id = 1;

View File

@@ -0,0 +1 @@
SELECT * FROM users;

View File

@@ -0,0 +1 @@
INSERT INTO users (name) VALUES ('John');

View File

@@ -0,0 +1 @@
DELETE FROM users WHERE id = 1;

View File

@@ -0,0 +1 @@
SELECT $outer$This contains $inner$nested; quote$inner$;$outer$;

View File

@@ -0,0 +1 @@
SELECT $outer$This contains $inner$nested; quote$inner$;$outer$;

View File

@@ -0,0 +1 @@
SELECT * FROM users

View File

@@ -0,0 +1 @@
SELECT * FROM users

View File

@@ -0,0 +1 @@
;;;

View File

@@ -0,0 +1 @@
INSERT INTO users (name) VALUES ('John; DROP TABLE users;');

View File

@@ -0,0 +1 @@
INSERT INTO users (name) VALUES ('John; DROP TABLE users;');

View File

@@ -0,0 +1,2 @@
SELECT * FROM users; -- this is a comment
SELECT * FROM posts;

View File

@@ -0,0 +1 @@
SELECT * FROM users; -- this is a comment

View File

@@ -0,0 +1 @@
SELECT * FROM posts;

View File

@@ -0,0 +1,2 @@
SELECT * FROM users; -- this has a ; in it
SELECT * FROM posts;

View File

@@ -0,0 +1 @@
SELECT * FROM users; -- this has a ; in it

View File

@@ -0,0 +1 @@
SELECT * FROM posts;

View File

@@ -0,0 +1 @@
SELECT * FROM users;

View File

@@ -0,0 +1 @@
SELECT * FROM users;

View File

@@ -0,0 +1 @@
SELECT $tag$This has a ; semicolon$tag$;

View File

@@ -0,0 +1 @@
SELECT $tag$This has a ; semicolon$tag$;

View File

@@ -0,0 +1,2 @@