mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Rename query_row_col to query_get_value
Since function `query_row_col` no longer accept column number argument, it is misleading to mention column in its name.
This commit is contained in:
@@ -35,7 +35,7 @@ pub fn save(context: &Context, namespace: Namespace, foreign_id: u32) -> String
|
||||
}
|
||||
|
||||
pub fn lookup(context: &Context, namespace: Namespace, foreign_id: u32) -> Option<String> {
|
||||
context.sql.query_row_col::<_, String>(
|
||||
context.sql.query_get_value::<_, String>(
|
||||
context,
|
||||
"SELECT token FROM tokens WHERE namespc=? AND foreign_id=?;",
|
||||
params![namespace, foreign_id as i32],
|
||||
|
||||
Reference in New Issue
Block a user