mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-01 07:03:10 +02:00
chore: doctests fixes
This commit is contained in:
@@ -30,23 +30,6 @@ use crate::storage::types::{knowledge_entity::KnowledgeEntity, StoredObject};
|
||||
/// This function will return a `Error` if:
|
||||
/// * The database query fails to execute
|
||||
/// * The results cannot be deserialized into type `T`
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// #[derive(serde::Deserialize)]
|
||||
/// struct KnowledgeEntity {
|
||||
/// id: String,
|
||||
/// source_id: String,
|
||||
/// // ... other fields
|
||||
/// }
|
||||
///
|
||||
/// let results = find_entities_by_source_id::<KnowledgeEntity>(
|
||||
/// "source123".to_string(),
|
||||
/// "knowledge_entity".to_string(),
|
||||
/// &db_client
|
||||
/// ).await?;
|
||||
/// ```
|
||||
pub async fn find_entities_by_source_ids<T>(
|
||||
source_id: Vec<String>,
|
||||
table_name: String,
|
||||
|
||||
Reference in New Issue
Block a user