feat: deprecate create_or_update in favour of upsert

The `create_or_update` method has been deprecated and replaced by
`upsert` for clarity and consistency with common database terminology.

This commit also removes the file `src/entity.rs` which has been
forgotten in earlier commits and was no longer part of Georm.
This commit is contained in:
2025-08-09 15:09:22 +02:00
parent 49c7d86102
commit 5d8a1b1917
10 changed files with 25 additions and 100 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ Post::find(executor, &post_id).await?;
// Mutation operations
post.create(executor).await?;
post.update(executor).await?;
post.create_or_update(executor).await?;
post.upsert(executor).await?;
post.delete(executor).await?;
Post::delete_by_id(executor, &post_id).await?;