mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-19 12:29:34 +08:00
Captured identifiers in SQL strings
Initial draft
This commit is contained in:
22
rusqlite-macros/tests/test.rs
Normal file
22
rusqlite-macros/tests/test.rs
Normal 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);
|
||||
}
|
||||
*/
|
Reference in New Issue
Block a user