Skip to content

Commit e4d9ba1

Browse files
authored
Implement first pass at MySQL JOIN support (#690)
* endtoend: Add MySQL identical tables test * endtoend: Add MySQL join where clause test * dolphin: Implement first pass at JOIN support * dolphin: Convert ast.JoinExpr
1 parent c2d2086 commit e4d9ba1

File tree

31 files changed

+402
-22
lines changed

31 files changed

+402
-22
lines changed

internal/endtoend/testdata/identical_tables/sqlc.json renamed to internal/endtoend/testdata/identical_tables/mysql/sqlc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"packages": [
44
{
55
"path": "go",
6+
"engine": "mysql:beta",
67
"name": "querytest",
78
"schema": "query.sql",
89
"queries": "query.sql"

internal/endtoend/testdata/identical_tables/postgresql/go/models.go

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/identical_tables/postgresql/go/query.sql.go

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CREATE TABLE foo (id text not null);
2+
CREATE TABLE bar (id text not null);
3+
4+
-- name: IdenticalTable :many
5+
SELECT * FROM foo;

internal/endtoend/testdata/join_alias/sqlc.json renamed to internal/endtoend/testdata/identical_tables/postgresql/sqlc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"packages": [
44
{
55
"path": "go",
6+
"engine": "postgresql",
67
"name": "querytest",
78
"schema": "query.sql",
89
"queries": "query.sql"

0 commit comments

Comments
 (0)