Define common CRUD trait for database operations #40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's clear that the database section contains a lot of nearly identical boilerplate code. It might be useful to define a generic trait that implements the most commonly used CRUD operations we use (e.g. all, create, update...). This would save us a lot of time & allow us to learn a lot more about traits and how they work.
We could maybe even use a procedural macro if we're being really fancy.