add get_id and relationships, untested
All checks were successful
CI / tests (push) Successful in 8m40s

This commit is contained in:
2025-01-25 19:24:16 +01:00
parent 642d7bae0d
commit 915bd8387e
6 changed files with 454 additions and 177 deletions

View File

@@ -70,4 +70,7 @@ pub trait Crud<Id> {
pool: &sqlx::PgPool,
id: &Id,
) -> impl std::future::Future<Output = sqlx::Result<u64>> + Send;
/// Returns the identifier of the entity.
fn get_id(&self) -> &Id;
}