From 196dbf97517afe5b62f6a1991961c8fc1018c28b Mon Sep 17 00:00:00 2001 From: Alexey Stukalov Date: Tue, 26 Jan 2021 15:03:32 +0100 Subject: [PATCH] export `@sql_str` macro --- src/DBInterface.jl | 2 ++ test/runtests.jl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/DBInterface.jl b/src/DBInterface.jl index b5422ab..db04b5f 100644 --- a/src/DBInterface.jl +++ b/src/DBInterface.jl @@ -1,5 +1,7 @@ module DBInterface +export @sql_str; + """ Declare the string as written in SQL. diff --git a/test/runtests.jl b/test/runtests.jl index 30fc30a..0d4fd75 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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"