mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-02 19:11:43 +02:00
chore: rename get_id to id, add doc comments, pre-allocate format_history
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user