diff options
author | Teddy Wing | 2022-03-18 19:57:47 +0100 |
---|---|---|
committer | Teddy Wing | 2022-03-18 19:57:47 +0100 |
commit | 065f2e630f366fe38920885c63cf97a7d3218c21 (patch) | |
tree | 9e8de1f9d7f132ad6dda2b357c38981d47505311 /src | |
parent | cc960575a321700b9b8981eb1d5b542fd2207fc2 (diff) | |
download | yaqlite-065f2e630f366fe38920885c63cf97a7d3218c21.tar.bz2 |
select(): Debug the parameterized SQL query
Add the `modern_sqlite` feature in order to use the `expanded_sql()`
method. This shows us the SQL query with parameters expanded.
Diffstat (limited to 'src')
-rw-r--r-- | src/select.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/select.rs b/src/select.rs index 133cae7..4fcd41c 100644 --- a/src/select.rs +++ b/src/select.rs @@ -76,6 +76,8 @@ pub fn select( // return row[0].0.into_owned(); } + dbg!(&stmt.expanded_sql()); + // sqlite3 -header test.db ' // SELECT "name" // FROM pragma_table_info("test") |