OmegaStore

Struct OmegaStore 

Source
pub struct OmegaStore { /* private fields */ }
Expand description

Main storage interface for ExoGenesis Omega

Implementations§

Source§

impl OmegaStore

Source

pub fn new(path: &str) -> Result<Self>

Create or open a database at the given path

§Arguments
  • path - Path to the SQLite database file
§Returns
  • Result<Self> - New OmegaStore instance or error
Source

pub fn new_in_memory() -> Result<Self>

Create an in-memory database (useful for testing)

Source

pub fn store_memory(&self, memory: &StoredMemory) -> Result<()>

Store a memory in the database

Source

pub fn get_memory(&self, id: &str) -> Result<StoredMemory>

Retrieve a memory by ID

Source

pub fn query_memories_by_tier(&self, tier: i32) -> Result<Vec<StoredMemory>>

Query memories by tier

Source

pub fn update_memory_access(&self, id: &str, timestamp: i64) -> Result<()>

Update memory last accessed timestamp

Source

pub fn store_skill(&self, skill: &StoredSkill) -> Result<()>

Store a skill in the database

Source

pub fn get_skill(&self, id: &str) -> Result<StoredSkill>

Retrieve a skill by ID

Source

pub fn get_skills_by_pattern(&self, pattern: &str) -> Result<Vec<StoredSkill>>

Get skills matching a trigger pattern

Source

pub fn increment_skill_success(&self, id: &str, timestamp: i64) -> Result<()>

Increment skill success count

Source

pub fn store_architecture(&self, arch: &StoredArchitecture) -> Result<()>

Store an architecture in the database

Source

pub fn get_architecture(&self, id: &str) -> Result<StoredArchitecture>

Retrieve an architecture by ID

Source

pub fn get_architectures_by_paradigm( &self, paradigm: &str, ) -> Result<Vec<StoredArchitecture>>

Get all architectures by paradigm

Source

pub fn store_intelligence(&self, intel: &StoredIntelligence) -> Result<()>

Store an intelligence in the database

Source

pub fn get_intelligence(&self, id: &str) -> Result<StoredIntelligence>

Retrieve an intelligence by ID

Source

pub fn get_intelligences_by_arch( &self, arch_id: &str, ) -> Result<Vec<StoredIntelligence>>

Get intelligences by architecture ID

Source

pub fn store_vector(&self, vector: &StoredVector) -> Result<()>

Store a vector embedding

Source

pub fn get_vector_by_memory(&self, memory_id: &str) -> Result<StoredVector>

Get vector by memory ID

Source

pub fn store_reflexion(&self, episode: &StoredReflexionEpisode) -> Result<()>

Store a reflexion episode

Source

pub fn get_reflexions_by_memory( &self, memory_id: &str, ) -> Result<Vec<StoredReflexionEpisode>>

Get reflexion episodes by memory ID

Source

pub fn store_causal_edge(&self, edge: &StoredCausalEdge) -> Result<()>

Store a causal edge

Source

pub fn get_causal_edges_from( &self, memory_id: &str, ) -> Result<Vec<StoredCausalEdge>>

Get outgoing causal edges from a memory

Source

pub fn backup(&self, backup_path: &str) -> Result<()>

Backup the database to a specified path

Source

pub fn get_statistics(&self) -> Result<DatabaseStatistics>

Get database statistics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.