Add API to manage recipe tags
This commit is contained in:
parent
754d5ec9e3
commit
f8333651fd
6 changed files with 244 additions and 9 deletions
|
|
@ -195,6 +195,13 @@ WHERE [type] = 'table' AND [name] = 'Version'
|
|||
.map(|db_result| db_result.rows_affected())
|
||||
.map_err(DBError::from)
|
||||
}
|
||||
|
||||
// pub async fn execute_sql_and_fetch_all<'a>(
|
||||
// &self,
|
||||
// query: sqlx::query::Query<'a, Sqlite, sqlx::sqlite::SqliteArguments<'a>>,
|
||||
// ) -> Result<Vec<SqliteRow>> {
|
||||
// query.fetch_all(&self.pool).await.map_err(DBError::from)
|
||||
// }
|
||||
}
|
||||
|
||||
fn load_sql_file<P: AsRef<Path> + fmt::Display>(sql_file: P) -> Result<String> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue