include-sql 0.1.0

A macro for using SQL in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
-- Test case for multiple statements where the first one can be unnamed.

-- Note that because include-sql allows comments anywhere it can only
-- detect the beginning of the next statement in a multi-statement include
-- when it encounters the `name:` marker. The only exception to this rule
-- is the very first statement.

-- This statement will get its name from the file name
select * from dual

-- name: count_tables
-- Selects the number of user tables
select count(*) from user_tables