-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from alyst/export_sqlstr
Export `@sql_str` macro
- Loading branch information
Showing
2 changed files
with
5 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module DBInterface | ||
|
||
export @sql_str; | ||
|
||
""" | ||
Declare the string as written in SQL. | ||
|
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,6 @@ | ||
using DBInterface, Test | ||
|
||
@test_throws MethodError DBInterface.connect(Int64) | ||
|
||
# test @sql_str macro (does nothing) | ||
@test sql"SELECT * FROM MyTable" == "SELECT * FROM MyTable" |