Skip to content

Commit

Permalink
Dummy impl for local SysDB
Browse files Browse the repository at this point in the history
  • Loading branch information
Sicheng Pan committed Dec 6, 2024
1 parent e8e9a6c commit 99df1c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chromadb/db/mixins/sysdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
)
from chromadb.ingest import Producer
from chromadb.types import (
CollectionSegments,
Database,
OptionalArgument,
Segment,
Expand Down Expand Up @@ -488,6 +489,13 @@ def get_collections(

return collections

@override
def get_collection_with_segments(self, collection_id: UUID) -> CollectionSegments:
return CollectionSegments(
collection=self.get_collections(id=collection_id)[0],
segments=self.get_segments(collection=collection_id),
)

@trace_method("SqlSysDB.delete_segment", OpenTelemetryGranularity.ALL)
@override
def delete_segment(self, collection: UUID, id: UUID) -> None:
Expand Down

0 comments on commit 99df1c6

Please sign in to comment.