pub struct SqliteAdapter { /* private fields */ }Expand description
SQLite database adapter
Implementations§
Trait Implementations§
Source§impl IDatabaseAdapter for SqliteAdapter
impl IDatabaseAdapter for SqliteAdapter
Source§fn initialize<'life0, 'async_trait>(
&'life0 mut self,
_config: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
_config: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize database connection
Source§fn is_ready<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_ready<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if database is ready
Source§fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Close database connection
Source§fn get_connection<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any + Send>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_connection<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any + Send>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get database connection (type-erased)
Source§fn run_plugin_migrations<'life0, 'async_trait>(
&'life0 self,
plugins: Vec<PluginMigration>,
options: MigrationOptions,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run_plugin_migrations<'life0, 'async_trait>(
&'life0 self,
plugins: Vec<PluginMigration>,
options: MigrationOptions,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run plugin schema migrations
Source§fn persist_llm_cost<'life0, 'async_trait>(
&'life0 self,
record: LLMCostRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn persist_llm_cost<'life0, 'async_trait>(
&'life0 self,
record: LLMCostRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Persist an LLM cost record
Source§fn get_agent<'life0, 'async_trait>(
&'life0 self,
agent_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Agent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_agent<'life0, 'async_trait>(
&'life0 self,
agent_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Agent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get agent by ID
Source§fn get_agents<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Agent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_agents<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Agent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all agents
Source§fn create_agent<'life0, 'life1, 'async_trait>(
&'life0 self,
agent: &'life1 Agent,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_agent<'life0, 'life1, 'async_trait>(
&'life0 self,
agent: &'life1 Agent,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create agent
Source§fn update_agent<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: UUID,
agent: &'life1 Agent,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_agent<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: UUID,
agent: &'life1 Agent,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update agent
Source§fn delete_agent<'life0, 'async_trait>(
&'life0 self,
agent_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_agent<'life0, 'async_trait>(
&'life0 self,
agent_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete agent
Source§fn ensure_embedding_dimension<'life0, 'async_trait>(
&'life0 self,
_dimension: usize,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ensure_embedding_dimension<'life0, 'async_trait>(
&'life0 self,
_dimension: usize,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Ensure embedding dimension
Source§fn get_entities_by_ids<'life0, 'async_trait>(
&'life0 self,
entity_ids: Vec<UUID>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Entity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_entities_by_ids<'life0, 'async_trait>(
&'life0 self,
entity_ids: Vec<UUID>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Entity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get entities by IDs
Source§fn get_entities_for_room<'life0, 'async_trait>(
&'life0 self,
room_id: UUID,
_include_components: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<Entity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_entities_for_room<'life0, 'async_trait>(
&'life0 self,
room_id: UUID,
_include_components: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<Entity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get entities for room
Source§fn create_entities<'life0, 'async_trait>(
&'life0 self,
entities: Vec<Entity>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_entities<'life0, 'async_trait>(
&'life0 self,
entities: Vec<Entity>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create entities
Source§fn update_entity<'life0, 'life1, 'async_trait>(
&'life0 self,
entity: &'life1 Entity,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_entity<'life0, 'life1, 'async_trait>(
&'life0 self,
entity: &'life1 Entity,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update entity
Source§fn get_entity_by_id<'life0, 'async_trait>(
&'life0 self,
entity_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Entity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_entity_by_id<'life0, 'async_trait>(
&'life0 self,
entity_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Entity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get entity by ID
Source§fn get_component<'life0, 'life1, 'async_trait>(
&'life0 self,
entity_id: UUID,
component_type: &'life1 str,
world_id: Option<UUID>,
source_entity_id: Option<UUID>,
) -> Pin<Box<dyn Future<Output = Result<Option<Component>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_component<'life0, 'life1, 'async_trait>(
&'life0 self,
entity_id: UUID,
component_type: &'life1 str,
world_id: Option<UUID>,
source_entity_id: Option<UUID>,
) -> Pin<Box<dyn Future<Output = Result<Option<Component>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get component
Source§fn get_components<'life0, 'async_trait>(
&'life0 self,
entity_id: UUID,
world_id: Option<UUID>,
source_entity_id: Option<UUID>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Component>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_components<'life0, 'async_trait>(
&'life0 self,
entity_id: UUID,
world_id: Option<UUID>,
source_entity_id: Option<UUID>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Component>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all components for an entity
Source§fn create_component<'life0, 'life1, 'async_trait>(
&'life0 self,
component: &'life1 Component,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_component<'life0, 'life1, 'async_trait>(
&'life0 self,
component: &'life1 Component,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create component
Source§fn update_component<'life0, 'life1, 'async_trait>(
&'life0 self,
component: &'life1 Component,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_component<'life0, 'life1, 'async_trait>(
&'life0 self,
component: &'life1 Component,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update component
Source§fn delete_component<'life0, 'async_trait>(
&'life0 self,
component_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_component<'life0, 'async_trait>(
&'life0 self,
component_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete component
Source§fn get_memories<'life0, 'async_trait>(
&'life0 self,
params: MemoryQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<Memory>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_memories<'life0, 'async_trait>(
&'life0 self,
params: MemoryQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<Memory>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get memories matching criteria
Source§fn create_memory<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
memory: &'life1 Memory,
_table_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<UUID>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_memory<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
memory: &'life1 Memory,
_table_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<UUID>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create memory
Source§fn search_memories_by_embedding<'life0, 'async_trait>(
&'life0 self,
_params: SearchMemoriesParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<Memory>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn search_memories_by_embedding<'life0, 'async_trait>(
&'life0 self,
_params: SearchMemoriesParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<Memory>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Search memories by embedding
Source§fn get_cached_embeddings<'life0, 'async_trait>(
&'life0 self,
_params: MemoryQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<Memory>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_cached_embeddings<'life0, 'async_trait>(
&'life0 self,
_params: MemoryQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<Memory>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get cached embeddings
Source§fn update_memory<'life0, 'life1, 'async_trait>(
&'life0 self,
memory: &'life1 Memory,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_memory<'life0, 'life1, 'async_trait>(
&'life0 self,
memory: &'life1 Memory,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update memory
Source§fn remove_memory<'life0, 'life1, 'async_trait>(
&'life0 self,
memory_id: UUID,
_table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_memory<'life0, 'life1, 'async_trait>(
&'life0 self,
memory_id: UUID,
_table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove memory
Source§fn remove_all_memories<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: UUID,
_table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_all_memories<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: UUID,
_table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove all memories for agent
Source§fn count_memories<'life0, 'async_trait>(
&'life0 self,
params: MemoryQuery,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count_memories<'life0, 'async_trait>(
&'life0 self,
params: MemoryQuery,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Count memories
Source§fn get_world<'life0, 'async_trait>(
&'life0 self,
world_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<World>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_world<'life0, 'async_trait>(
&'life0 self,
world_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<World>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get world
Source§fn ensure_world<'life0, 'life1, 'async_trait>(
&'life0 self,
world: &'life1 World,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn ensure_world<'life0, 'life1, 'async_trait>(
&'life0 self,
world: &'life1 World,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Ensure world exists
Source§fn get_room<'life0, 'async_trait>(
&'life0 self,
room_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Room>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_room<'life0, 'async_trait>(
&'life0 self,
room_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Room>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get room
Source§fn create_room<'life0, 'life1, 'async_trait>(
&'life0 self,
room: &'life1 Room,
) -> Pin<Box<dyn Future<Output = Result<UUID>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_room<'life0, 'life1, 'async_trait>(
&'life0 self,
room: &'life1 Room,
) -> Pin<Box<dyn Future<Output = Result<UUID>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create room
Source§fn get_rooms<'life0, 'async_trait>(
&'life0 self,
world_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Vec<Room>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_rooms<'life0, 'async_trait>(
&'life0 self,
world_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Vec<Room>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get rooms for world
Source§fn get_rooms_for_agent<'life0, 'async_trait>(
&'life0 self,
agent_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Vec<Room>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_rooms_for_agent<'life0, 'async_trait>(
&'life0 self,
agent_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Vec<Room>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get rooms for agent
Source§fn add_participant<'life0, 'async_trait>(
&'life0 self,
entity_id: UUID,
room_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_participant<'life0, 'async_trait>(
&'life0 self,
entity_id: UUID,
room_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add participant to room
Source§fn remove_participant<'life0, 'async_trait>(
&'life0 self,
entity_id: UUID,
room_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_participant<'life0, 'async_trait>(
&'life0 self,
entity_id: UUID,
room_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove participant from room
Source§fn get_participants<'life0, 'async_trait>(
&'life0 self,
room_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Vec<Participant>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_participants<'life0, 'async_trait>(
&'life0 self,
room_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Vec<Participant>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get participants for room
Source§fn create_relationship<'life0, 'life1, 'async_trait>(
&'life0 self,
relationship: &'life1 Relationship,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_relationship<'life0, 'life1, 'async_trait>(
&'life0 self,
relationship: &'life1 Relationship,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create relationship
Source§fn get_relationship<'life0, 'async_trait>(
&'life0 self,
entity_id_a: UUID,
entity_id_b: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Relationship>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_relationship<'life0, 'async_trait>(
&'life0 self,
entity_id_a: UUID,
entity_id_b: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Relationship>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get relationship
Source§fn create_task<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 Task,
) -> Pin<Box<dyn Future<Output = Result<UUID>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_task<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 Task,
) -> Pin<Box<dyn Future<Output = Result<UUID>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create task
Source§fn update_task<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 Task,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_task<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 Task,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update task
Source§fn get_task<'life0, 'async_trait>(
&'life0 self,
task_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Task>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task<'life0, 'async_trait>(
&'life0 self,
task_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Option<Task>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get task
Source§fn get_pending_tasks<'life0, 'async_trait>(
&'life0 self,
agent_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending_tasks<'life0, 'async_trait>(
&'life0 self,
agent_id: UUID,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get pending tasks
Source§fn log<'life0, 'life1, 'async_trait>(
&'life0 self,
log: &'life1 Log,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn log<'life0, 'life1, 'async_trait>(
&'life0 self,
log: &'life1 Log,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Log entry
Source§fn get_logs<'life0, 'async_trait>(
&'life0 self,
params: LogQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<Log>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_logs<'life0, 'async_trait>(
&'life0 self,
params: LogQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<Log>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get logs
Source§fn get_agent_run_summaries<'life0, 'async_trait>(
&'life0 self,
_params: RunSummaryQuery,
) -> Pin<Box<dyn Future<Output = Result<AgentRunSummaryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_agent_run_summaries<'life0, 'async_trait>(
&'life0 self,
_params: RunSummaryQuery,
) -> Pin<Box<dyn Future<Output = Result<AgentRunSummaryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get agent run summaries
Auto Trait Implementations§
impl Freeze for SqliteAdapter
impl !RefUnwindSafe for SqliteAdapter
impl Send for SqliteAdapter
impl Sync for SqliteAdapter
impl Unpin for SqliteAdapter
impl !UnwindSafe for SqliteAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more