mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Bring back the check that the contact's addr is no self addr in get_all()
Create params_iter() and params_iterv![] helper functions
This commit is contained in:
11
src/sql.rs
11
src/sql.rs
@@ -34,6 +34,17 @@ macro_rules! paramsv {
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! params_iterv {
|
||||
($($param:expr),+ $(,)?) => {
|
||||
vec![$(&$param as &dyn $crate::ToSql),+]
|
||||
};
|
||||
}
|
||||
|
||||
pub(crate) fn params_iter(iter: &[impl crate::ToSql]) -> impl Iterator<Item = &dyn crate::ToSql> {
|
||||
iter.iter().map(|item| item as &dyn crate::ToSql)
|
||||
}
|
||||
|
||||
mod migrations;
|
||||
|
||||
/// A wrapper around the underlying Sqlite3 object.
|
||||
|
||||
Reference in New Issue
Block a user