From e7fce22bd1e7c711c8c7bf16da7ebfe32b0919a8 Mon Sep 17 00:00:00 2001 From: arcayr Date: Sat, 28 Dec 2024 22:00:33 +1100 Subject: [PATCH] clarify that query strings are for bind points only. generated query strings from this macro are not executed directly, merely used as a query to which actual parameter values are bound. --- crates/ezpg-macros/src/derive.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ezpg-macros/src/derive.rs b/crates/ezpg-macros/src/derive.rs index 340ce83..c84c535 100644 --- a/crates/ezpg-macros/src/derive.rs +++ b/crates/ezpg-macros/src/derive.rs @@ -28,7 +28,9 @@ impl RecordDerive { } } - // generates the record c/r/u/d query strings. + /// generates the record c/r/u/d query strings. + /// these are generated as queries into which parameters are bound. + /// the query strings themselves are not executed directly. pub fn gen_withqueries_impl(&self) -> proc_macro2::TokenStream { let ident = &self.ident; let table_name = self.table_name();