Skip to content

Commit

Permalink
reset_number
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Dec 3, 2024
1 parent d3f27a7 commit 1916721
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ class BufferDatabase(BaseDatabase):
__slots__ = ()

@classmethod
def reset_db(cls, segment_number: int,
def reset_db(cls, reset_number: int,
read_only: Optional[bool] = None) -> "BufferDatabase":
"""
Retrieves a NeoBufferDatabase for this segment.
"""
database_file = cls.reset_file(segment_number)
database_file = cls.reset_file(reset_number)
return BufferDatabase(database_file, read_only)

def clear_recording_region(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ def __init__(self, provenance_data_path: Optional[str] = None):
row_factory=None, text_factory=None)

@classmethod
def reset_db(cls, segment_number: int,
def reset_db(cls, reset_number: int,
read_only: Optional[bool] = None) -> "ProvenanceReader":
"""
Retrieves a NeoBufferDatabase for this segment.
"""
database_file = cls.reset_file(segment_number)
database_file = cls.reset_file(reset_number)
return ProvenanceReader(database_file, read_only)

def run_query(self, query: str, params: Iterable[_SqliteTypes] = ()
Expand Down

0 comments on commit 1916721

Please sign in to comment.