Captured identifiers in SQL strings

Initial draft
This commit is contained in:
gwenn
2022-11-20 18:07:17 +01:00
parent 7035904192
commit cc23f9cdd7
4 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
use rusqlite_macros::__bind;
#[test]
fn test_literal() {
let stmt = ();
__bind!(stmt, "SELECT $name");
}
/* FIXME
#[test]
fn test_raw_string() {
let stmt = ();
__bind!((), r#"SELECT 1"#);
}
#[test]
fn test_const() {
const SQL: &str = "SELECT 1";
let stmt = ();
__bind!((), SQL);
}
*/