chore: rename get_id to id, add doc comments, pre-allocate format_history

This commit is contained in:
Per Stark
2026-05-27 18:06:16 +02:00
parent 9ccf8dde25
commit 4f02fcb853
16 changed files with 52 additions and 25 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ impl SurrealDbClient {
T: StoredObject + Send + Sync + 'static,
{
self.client
.create((T::table_name(), item.get_id()))
.create((T::table_name(), item.id()))
.content(item)
.await
}
@@ -159,7 +159,7 @@ impl SurrealDbClient {
where
T: StoredObject + Send + Sync + 'static,
{
let id = item.get_id().to_string();
let id = item.id().to_string();
self.client
.upsert((T::table_name(), id))
.content(item)