Support Rust expression like {x.y} in SQL strings

This commit is contained in:
gwenn
2023-08-20 10:35:26 +02:00
parent e8f73c93c4
commit b86d9321b5
4 changed files with 34 additions and 7 deletions

View File

@@ -220,9 +220,9 @@ macro_rules! named_params {
/// Captured identifiers in SQL
///
/// * only SQLite `$x` / `@x` / `:x` syntax works (Rust `&x` syntax does not
/// work).
/// * SQLite `$x` / `@x` / `:x` syntax works (Rust `&x` syntax does not work).
/// * `$x.y` expression does not work.
/// * `{x}` and `{x.y}` work
///
/// # Example
///
@@ -249,9 +249,9 @@ macro_rules! prepare_and_bind {
/// Captured identifiers in SQL
///
/// * only SQLite `$x` / `@x` / `:x` syntax works (Rust `&x` syntax does not
/// work).
/// * SQLite `$x` / `@x` / `:x` syntax works (Rust `&x` syntax does not work).
/// * `$x.y` expression does not work.
/// * `{x}` and `{x.y}` work
#[cfg(feature = "rusqlite-macros")]
#[cfg_attr(docsrs, doc(cfg(feature = "rusqlite-macros")))]
#[macro_export]