Skip to content

Commit

Permalink
Merge pull request #34 from alyst/export_sqlstr
Browse files Browse the repository at this point in the history
Export `@sql_str` macro
  • Loading branch information
quinnj authored Jan 26, 2021
2 parents 5aae7b0 + 196dbf9 commit 73d62d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DBInterface.jl
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.
Expand Down
3 changes: 3 additions & 0 deletions test/runtests.jl
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"

0 comments on commit 73d62d5

Please sign in to comment.