-
Notifications
You must be signed in to change notification settings - Fork 777
Commit
…odes (#3069) This allows users to run generate on any parseable query, even when sqlc doesn't understand it. Closes #2377
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- name: CreateTable :exec | ||
CREATE TABLE test (id INTEGER NOT NULL); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
sql: | ||
- queries: mysql.query.sql | ||
schema: mysql.schema.sql | ||
engine: mysql | ||
gen: | ||
go: | ||
out: db |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- name: CreateTable :exec | ||
CREATE TABLE test (id INTEGER NOT NULL); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
sql: | ||
- queries: postgresql.query.sql | ||
schema: postgresql.schema.sql | ||
engine: postgresql | ||
gen: | ||
go: | ||
out: db | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
sql: | ||
- queries: sqlite.query.sql | ||
schema: sqlite.schema.sql | ||
engine: sqlite | ||
gen: | ||
go: | ||
out: db |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- name: CreateTable :exec | ||
CREATE TABLE test (id INTEGER NOT NULL); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version: 2 | ||
sql: | ||
- schema: "query.sql" | ||
- schema: "schema.sql" | ||
queries: "query.sql" | ||
engine: "postgresql" | ||
gen: | ||
|