4 ms·
#[table(name = person, public)] pub struct Person { name: String, } No, just say no. Do not conflate your relational database schema with howev
by beders 1y ago
#[table(name = person, public)]
pub struct Person {
name: String,
}
No, just say no.
Do not conflate your relational database schema with however you treat that data in your app.
You want explicit control, not annotation magic.
- robmccoll 1y agoThis sounds like a fundamental disagreement with using ORM. Are you advocating for always writing queries (not excluding the possibility of a query builder) over treating database rows as application-side entities that can have CRUD operations performed on them / persisted?