knowledge-base-crud 0.2.0

Filesystem CRUD operations for a file-based knowledge base
Documentation
mod query;
mod read;
mod relationships;
mod statement;

pub use query::{EntitiesPage, EntityFilter};
pub use relationships::{EntityRelationship, EntityRelationshipsPage, RelatedEntity, RelationshipDirection};
pub use statement::{ApplyMode, ApplyStatementsOutcome, StatementBatch, StatementInput, StatementResult, StatementResultStatus};

use crate::KnowledgeBase;

#[derive(Clone, Copy, Debug)]
pub struct Entities<'a> {
    knowledge_base: &'a KnowledgeBase,
}

impl<'a> Entities<'a> {
    pub(crate) fn new(knowledge_base: &'a KnowledgeBase) -> Self {
        Self { knowledge_base }
    }
}