MCPcopy Create free account
hub / github.com/douglance/devsql / scan_indexed_data

Method scan_indexed_data

crates/ccql/src/sql/composite_storage.rs:648–663  ·  view source on GitHub ↗
(
        &self,
        table_name: &str,
        index_name: &str,
        asc: Option<bool>,
        cmp_value: Option<(&IndexOperator, Value)>,
    )

Source from the content-addressed store, hash-verified

646#[async_trait]
647impl Index for CompositeStorage {
648 async fn scan_indexed_data(
649 &self,
650 table_name: &str,
651 index_name: &str,
652 asc: Option<bool>,
653 cmp_value: Option<(&IndexOperator, Value)>,
654 ) -> Result<RowIter<'_>> {
655 if self.is_virtual_table(table_name) {
656 // Virtual tables don't support indexes, fall back to full scan
657 self.scan_data(table_name).await
658 } else {
659 self.json_storage
660 .scan_indexed_data(table_name, index_name, asc, cmp_value)
661 .await
662 }
663 }
664}
665
666// Implement IndexMut (delegate to JsonStorage)

Callers

nothing calls this directly

Calls 2

is_virtual_tableMethod · 0.80
scan_dataMethod · 0.80

Tested by

no test coverage detected