-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
For returning statements, we could inject the type that should be returned automatically if it is included.
e.g.
-- name: add_new_book->ReturnTypeWhich will generate something like
fn add_new_book(&self, isbn: &str, book_title: &str) -> rusqlite::Result<ReturnType>;ReturnType would need to implement a trait like FromRow. We could use the trait from this crate to automatically derive it: https://github.com/remkop22/rusqlite-from-row . Either copy the work or re-export.
So there is no need for a row_callback for when the return type is specified.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels