dxps / fullstack-rust-axum-dioxus-rwa

A RealWorld app implementation as a fullstack Rust project using Axum (back-end) and Dioxus (front-end).
MIT License
79 stars 6 forks source link

[be] `ArticlesRepo` - Refactor the common parts #12

Closed dxps closed 1 year ago

dxps commented 1 year ago

Some parts are duplicated, thus need to be extracted into a reusable function:

  1. The INSERT INTO tags_articles statements (done in both add and update methods).
  2. Rendering the AppError based on Error or DatabaseError.