Define common CRUD trait for database operations #40
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. 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.