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.
This commit is contained in:
elliot speck 2024-12-28 22:00:33 +11:00
parent 96f3081f9a
commit e7fce22bd1
No known key found for this signature in database

View file

@ -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 { pub fn gen_withqueries_impl(&self) -> proc_macro2::TokenStream {
let ident = &self.ident; let ident = &self.ident;
let table_name = self.table_name(); let table_name = self.table_name();