mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-30 07:01:34 +00:00
rename Query::map() to try_map() and nail down some semantics
This commit is contained in:
committed by
Ryan Leckey
parent
255dce1f06
commit
9cd3f5e75b
@@ -81,22 +81,6 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unused_macros)]
|
||||
macro_rules! impl_execute_for_query {
|
||||
($db:ty) => {
|
||||
impl<'q> $crate::executor::Execute<'q, $db> for $crate::query::Query<'q, $db> {
|
||||
fn into_parts(
|
||||
self,
|
||||
) -> (
|
||||
&'q str,
|
||||
Option<<$db as $crate::database::Database>::Arguments>,
|
||||
) {
|
||||
(self.query, Some(self.arguments))
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
impl<T> Executor for &'_ mut T
|
||||
where
|
||||
T: Executor,
|
||||
|
||||
Reference in New Issue
Block a user