-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed generate code not correct when have global sql clause only in s…
…ql define file
- Loading branch information
Showing
11 changed files
with
144 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
---------------------- | ||
-- default sql ddl -- | ||
---------------------- | ||
|
||
-- name: user_info_a | ||
-- prepare: stmt | ||
SELECT `username` FROM @user WHERE username=? | ||
|
||
-- name: user_info_b | ||
SELECT `username`, `nickname` FROM @user WHERE username=? | ||
|
||
-- name: user_info_c | ||
-- prepare: raw | ||
SELECT "username" FROM @user WHERE username=? | ||
|
||
-- name: user_info_d | ||
-- prepare: string | ||
SELECT "username", "nickname" FROM @user WHERE username=? | ||
|
||
-- name: login_info_a | ||
-- prepare: named_stmt | ||
SELECT * FROM @user WHERE username=? | ||
|
||
-- name: login_info_b | ||
SELECT * FROM @user WHERE username=? | ||
|
||
-- name: logout_info_c | ||
-- prepare: raw | ||
SELECT * FROM @user WHERE username=? | ||
|
||
-- name: login_info_d | ||
-- prepare: string | ||
SELECT * FROM @user WHERE username=? | ||
|
||
-- name: login_info_e | ||
-- prepare: named_stmt | ||
SELECT * FROM @user WHERE username=? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package yesql | ||
|
||
var Version = "v1.8.0" | ||
var Version = "v1.8.1" |