Skip to content

Commit 9f13d1f

Browse files
committed
test: move tests to endtoend package
1 parent b609567 commit 9f13d1f

File tree

7 files changed

+34
-104
lines changed

7 files changed

+34
-104
lines changed

Diff for: internal/compiler/parse_test.go

-104
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Example queries for sqlc
2+
CREATE TABLE authors (
3+
id INT
4+
);
5+
6+
-- name: ListAuthors :many
7+
SELECT id FROM authors
8+
ORDER BY adfadsf;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1
2+
packages:
3+
- path: "go"
4+
name: "querytest"
5+
engine: "postgresql"
6+
schema: "query.sql"
7+
queries: "query.sql"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# package querytest
2+
query.sql:8:10: column reference "adfadsf" not found
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Example queries for sqlc
2+
CREATE TABLE authors (
3+
id INT
4+
);
5+
6+
-- name: ListAuthors :many
7+
SELECT id FROM authors
8+
ORDER BY adfadsf;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1
2+
packages:
3+
- path: "go"
4+
name: "querytest"
5+
engine: "postgresql"
6+
schema: "query.sql"
7+
queries: "query.sql"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# package querytest
2+
query.sql:8:10: column reference "adfadsf" not found

0 commit comments

Comments
 (0)