Add API to manage recipe tags

This commit is contained in:
Greg Burri 2025-01-03 23:32:54 +01:00
parent 754d5ec9e3
commit f8333651fd
6 changed files with 244 additions and 9 deletions

View file

@ -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> {