mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 22:16:30 +03:00
Use DC_PARAM_* constants everywhere
Also document each type they store. This makes existing code a little more readable and gives some hints towards refactoring this.
This commit is contained in:
@@ -131,6 +131,7 @@ impl Sql {
|
||||
})
|
||||
}
|
||||
|
||||
/// Execute a query which is expected to return one row.
|
||||
pub fn query_row<T, P, F>(&self, sql: impl AsRef<str>, params: P, f: F) -> Result<T>
|
||||
where
|
||||
P: IntoIterator,
|
||||
|
||||
Reference in New Issue
Block a user