Skip to content

Commit 9dd61dd

Browse files
authored
dolphin: Implete TRUNCATE table (#697)
1 parent 7ecdd3c commit 9dd61dd

File tree

12 files changed

+90
-2
lines changed

12 files changed

+90
-2
lines changed

internal/endtoend/testdata/truncate/mysql/go/models.go

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

internal/endtoend/testdata/truncate/sqlc.json renamed to internal/endtoend/testdata/truncate/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/truncate/postgresql/go/db.go

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

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

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CREATE TABLE bar (id serial not null);
2+
3+
-- name: Truncate :exec
4+
TRUNCATE bar;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "1",
3+
"packages": [
4+
{
5+
"path": "go",
6+
"engine": "postgresql",
7+
"name": "querytest",
8+
"schema": "query.sql",
9+
"queries": "query.sql"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)