Skip to main content

PartitionedSqliteKnowledgeStore

Struct PartitionedSqliteKnowledgeStore 

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

SQLite topology that keeps global control state in one DB and code facts in one DB per registered repository.

Implementations§

Trait Implementations§

Source§

impl BusinessKnowledgeStore for PartitionedSqliteKnowledgeStore

Source§

impl Clone for PartitionedSqliteKnowledgeStore

Source§

fn clone(&self) -> PartitionedSqliteKnowledgeStore

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CodeGraphStore for PartitionedSqliteKnowledgeStore

Source§

impl CodeIndexPublicationStore for PartitionedSqliteKnowledgeStore

Source§

fn code_index_checkpoint( &self, source_scope: String, ) -> StorageFuture<'_, Option<CodeIndexCheckpoint>>

Source§

fn latest_code_index_checkpoint( &self, repository_id: String, ) -> StorageFuture<'_, Option<CodeIndexCheckpoint>>

Source§

fn apply_code_index_snapshot( &self, snapshot: CodeIndexSnapshot, ) -> StorageFuture<'_, CodeIndexSummary>

Source§

fn apply_code_index_snapshot_with_fence( &self, snapshot: CodeIndexSnapshot, fence: CodeIndexPublicationFence, ) -> StorageFuture<'_, CodeIndexSummary>

Source§

fn clear_code_workspace_state( &self, repository_id: String, source_scope: String, ) -> StorageFuture<'_, ()>

Source§

fn code_repository_auto_workspace_state_exists( &self, repository_id: String, ) -> StorageFuture<'_, bool>

Reports whether repository-owned auto-detected workspace artifacts still exist and therefore require a durable disabled-mode cleanup.
Source§

fn clear_code_workspace_state_with_fence( &self, repository_id: String, source_scope: String, fence: CodeIndexPublicationFence, ) -> StorageFuture<'_, ()>

Source§

fn begin_code_index_session( &self, session: CodeIndexSession, ) -> StorageFuture<'_, CodeIndexCheckpoint>

Source§

fn begin_code_index_session_with_fence( &self, session: CodeIndexSession, fence: CodeIndexPublicationFence, ) -> StorageFuture<'_, CodeIndexCheckpoint>

Source§

fn begin_code_index_session_at_checkpoint( &self, session: CodeIndexSession, expected_checkpoint: Option<CodeIndexCheckpoint>, ) -> StorageFuture<'_, CodeIndexCheckpoint>

Starts a checkpointed session only when the durable checkpoint still matches the value observed during read-only plan validation.
Source§

fn begin_code_index_session_at_checkpoint_with_fence( &self, session: CodeIndexSession, expected_checkpoint: Option<CodeIndexCheckpoint>, fence: CodeIndexPublicationFence, ) -> StorageFuture<'_, CodeIndexCheckpoint>

Source§

fn apply_code_index_batch( &self, batch: CodeIndexBatch, ) -> StorageFuture<'_, CodeIndexCheckpoint>

Source§

fn apply_code_index_batch_with_fence( &self, batch: CodeIndexBatch, fence: CodeIndexPublicationFence, ) -> StorageFuture<'_, CodeIndexCheckpoint>

Source§

fn finalize_code_index_session( &self, session: CodeIndexSession, ) -> StorageFuture<'_, CodeIndexSummary>

Source§

fn finalize_code_index_session_with_fence( &self, session: CodeIndexSession, fence: CodeIndexPublicationFence, ) -> StorageFuture<'_, CodeIndexSummary>

Source§

fn advance_code_index_session_with_fence( &self, session: CodeIndexSession, fence: CodeIndexPublicationFence, ) -> StorageFuture<'_, CodeIndexFinalizationStep>

Source§

impl CodeIndexSourceStore for PartitionedSqliteKnowledgeStore

Source§

fn code_file_fingerprints( &self, repository_id: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>

Source§

fn code_file_fingerprints_for_scope( &self, source_scope: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>

Source§

fn code_file_candidate_paths_for_scope( &self, source_scope: String, path_filters: Vec<String>, language_filters: Vec<String>, exclude_generated: bool, limit: usize, ) -> StorageFuture<'_, Vec<String>>

Source§

fn code_file_candidate_paths_for_query_scope( &self, source_scope: String, query: String, path_filters: Vec<String>, language_filters: Vec<String>, exclude_generated: bool, limit: usize, ) -> StorageFuture<'_, Vec<String>>

Source§

fn repository_documents_for_scope( &self, source_scope: String, path_filters: Vec<String>, max_files: usize, max_bytes: usize, ) -> StorageFuture<'_, Vec<IndexedRepositoryDocument>>

Source§

fn code_file_fingerprints_for_paths( &self, source_scope: String, paths: Vec<String>, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>

Source§

impl CodeIndexTaskStore for PartitionedSqliteKnowledgeStore

Source§

fn queue_code_index_task( &self, task: CodeIndexTaskSeed, ) -> StorageFuture<'_, CodeIndexTaskRecord>

Source§

fn claim_code_index_task( &self, request: CodeIndexTaskClaimRequest, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>

Source§

fn recover_code_index_task_leases( &self, now_ms: u64, max_attempts: u32, ) -> StorageFuture<'_, ()>

Source§

fn running_code_index_task_leases( &self, ) -> StorageFuture<'_, Vec<CodeIndexTaskLeaseRecord>>

Source§

fn recover_code_index_task_leases_by_task( &self, request: CodeIndexTaskLeaseRecovery, ) -> StorageFuture<'_, usize>

Source§

fn reset_code_index_tasks( &self, repository_id: String, now_ms: u64, ) -> StorageFuture<'_, Vec<CodeIndexTaskRecord>>

Source§

fn renew_code_index_task_lease( &self, request: CodeIndexTaskLeaseRenewal, ) -> StorageFuture<'_, CodeIndexTaskRecord>

Source§

fn complete_code_index_task( &self, request: CodeIndexTaskCompletion, ) -> StorageFuture<'_, CodeIndexTaskRecord>

Source§

fn run_code_index_post_maintenance( &self, repository_id: String, source_scope: String, ) -> StorageFuture<'_, ()>

Source§

fn code_index_publication_receipt( &self, task_id: String, repository_id: String, source_scope: String, now_ms: u64, ) -> StorageFuture<'_, bool>

Source§

fn reconcile_code_index_publication_with_fence( &self, target: CodeIndexPublicationTarget, fence: CodeIndexPublicationFence, ) -> StorageFuture<'_, bool>

Source§

fn fail_code_index_task( &self, request: CodeIndexTaskFailure, ) -> StorageFuture<'_, CodeIndexTaskRecord>

Source§

fn code_index_task( &self, task_id: String, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>

Source§

fn active_code_index_task( &self, repository_id: String, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>

Source§

fn code_index_task_queue_status( &self, ) -> StorageFuture<'_, CodeIndexTaskQueueStatus>

Source§

impl CodeQueryReadStore for PartitionedSqliteKnowledgeStore

Source§

impl CodeRepositorySetStore for PartitionedSqliteKnowledgeStore

Source§

fn create_code_repository_set( &self, seed: CodeRepositorySetSeed, ) -> StorageFuture<'_, CodeRepositorySet>

Source§

fn add_code_repository_set_member( &self, seed: CodeRepositorySetMemberSeed, ) -> StorageFuture<'_, CodeRepositorySetMember>

Source§

fn remove_code_repository_set_member( &self, set_alias: String, repository_alias: String, ) -> StorageFuture<'_, CodeRepositorySetMember>

Source§

fn code_repository_set( &self, set_alias: String, ) -> StorageFuture<'_, Option<CodeRepositorySet>>

Source§

fn code_repository_set_status( &self, set_alias: String, ) -> StorageFuture<'_, Option<CodeRepositorySetStatus>>

Source§

fn refresh_code_repository_set_overlay( &self, set_alias: String, _publication: CodeRepositorySetRefreshPublication, ) -> StorageFuture<'_, CodeRepositorySetRefreshSummary>

Source§

fn code_repository_set_cross_edges( &self, set_id: String, ) -> StorageFuture<'_, Vec<CodeRepositoryCrossEdge>>

Source§

fn code_repository_set_cross_edges_for_selector( &self, set_id: String, selector: CodeRepositorySetEdgeSelector, ) -> StorageFuture<'_, Vec<CodeRepositoryCrossEdge>>

Source§

fn queue_code_repository_set_refresh_task( &self, task: CodeRepositorySetRefreshTaskSeed, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>

Source§

fn claim_code_repository_set_refresh_task( &self, request: CodeRepositorySetRefreshTaskClaimRequest, ) -> StorageFuture<'_, Option<CodeRepositorySetRefreshTaskRecord>>

Source§

fn complete_code_repository_set_refresh_task( &self, request: CodeRepositorySetRefreshTaskCompletion, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>

Source§

fn fail_code_repository_set_refresh_task( &self, request: CodeRepositorySetRefreshTaskFailure, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>

Source§

impl CodeScopeRetentionStore for PartitionedSqliteKnowledgeStore

Source§

impl FrameworkGraphStore for PartitionedSqliteKnowledgeStore

Source§

impl GraphStore for PartitionedSqliteKnowledgeStore

Source§

impl IndexStore for PartitionedSqliteKnowledgeStore

Source§

fn index_statuses(&self) -> StorageFuture<'_, Vec<IndexStatus>>

Source§

fn mark_refresh_complete( &self, kind: IndexKind, graph_version: GraphVersion, ) -> StorageFuture<'_, IndexStatus>

Source§

fn index_cursors(&self) -> StorageFuture<'_, Vec<IndexCursor>>

Source§

fn queue_index_refreshes( &self, request: IndexRefreshQueueRequest, ) -> StorageFuture<'_, IndexRefreshDiagnostics>

Source§

fn claim_index_refresh_task( &self, request: IndexRefreshClaimRequest, ) -> StorageFuture<'_, Option<IndexRefreshTask>>

Source§

fn complete_index_refresh_task( &self, request: IndexRefreshCompletion, ) -> StorageFuture<'_, IndexRefreshTask>

Source§

fn fail_index_refresh_task( &self, request: IndexRefreshFailure, ) -> StorageFuture<'_, IndexRefreshTask>

Source§

fn index_refresh_diagnostics( &self, now_ms: u64, ) -> StorageFuture<'_, IndexRefreshDiagnostics>

Source§

fn queue_worker_tasks( &self, tasks: Vec<WorkerTaskSeed>, ) -> StorageFuture<'_, Vec<WorkerTaskRecord>>

Source§

fn worker_statuses(&self) -> StorageFuture<'_, Vec<WorkerStatus>>

Source§

fn claim_worker_task( &self, request: WorkerTaskClaimRequest, ) -> StorageFuture<'_, Option<WorkerTaskRecord>>

Source§

fn complete_worker_task( &self, request: WorkerTaskCompletion, ) -> StorageFuture<'_, WorkerTaskRecord>

Source§

fn fail_worker_task( &self, request: WorkerTaskFailure, ) -> StorageFuture<'_, WorkerTaskRecord>

Source§

fn insert_proposal( &self, proposal: NewProposal, ) -> StorageFuture<'_, ProposalRecord>

Source§

fn list_proposals( &self, request: ProposalListRequest, ) -> StorageFuture<'_, Vec<ProposalRecord>>

Source§

fn proposal_count( &self, state: Option<ProposalState>, ) -> StorageFuture<'_, usize>

Source§

fn proposal_by_id( &self, proposal_id: String, ) -> StorageFuture<'_, Option<ProposalRecord>>

Source§

fn proposal_conflicts( &self, proposal_id: String, ) -> StorageFuture<'_, Vec<ProposalConflictRecord>>

Source§

fn decide_proposal( &self, request: ProposalDecision, ) -> StorageFuture<'_, ProposalRecord>

Source§

fn insert_audit_event( &self, event: NewAuditEvent, ) -> StorageFuture<'_, AuditEventRecord>

Source§

fn query_audit_events( &self, request: AuditQueryRequest, ) -> StorageFuture<'_, Vec<AuditEventRecord>>

Source§

fn audit_event_count(&self) -> StorageFuture<'_, usize>

Source§

fn service_operator_status(&self) -> StorageFuture<'_, ServiceOperatorStatus>

Source§

fn update_service_operator( &self, request: ServiceOperatorUpdate, ) -> StorageFuture<'_, ServiceOperatorStatus>

Source§

fn replace_file_index_root( &self, update: FileIndexRootUpdate, ) -> StorageFuture<'_, FileIndexRootStatus>

Source§

fn mark_file_index_roots_unconfigured( &self, active_roots: Vec<FileIndexRoot>, now_ms: u64, ) -> StorageFuture<'_, FileIndexDiagnostics>

Source§

fn search_files( &self, request: FileSearchRequest, ) -> StorageFuture<'_, Vec<FileSearchHit>>

Source§

fn search_file_content( &self, request: FileContentSearchRequest, ) -> StorageFuture<'_, Vec<FileContentSearchHit>>

Source§

fn file_index_diagnostics(&self) -> StorageFuture<'_, FileIndexDiagnostics>

Source§

impl MutationLogStore for PartitionedSqliteKnowledgeStore

Source§

fn read_after( &self, graph_version: GraphVersion, limit: usize, ) -> StorageFuture<'_, Vec<MutationLogEntry>>

Source§

impl RepositoryCatalogStore for PartitionedSqliteKnowledgeStore

Source§

impl SoftwareProjectionStore for PartitionedSqliteKnowledgeStore

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> CodeRepositoryStore for T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> KnowledgeStore for T

Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more