Skip to content

Commit

Permalink
Updated init function of csv reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedant P Iyer committed Nov 15, 2024
1 parent c9e0845 commit 2047081
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dsi/plugins/file_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ class Csv(FileReader):
# Default value is False.
strict_mode = False

def __init__(self, filenames, **kwargs):
def __init__(self, filenames, db_name = None, **kwargs):
super().__init__(filenames, **kwargs)
self.csv_data = {}
self.csv_data = OrderedDict()
if isinstance(filenames, str):
self.filenames = [filenames]
else:
self.filenames = filenames
self.db_name = db_name

# def pack_header(self) -> None:
# """ Set schema based on the CSV columns """
Expand Down

0 comments on commit 2047081

Please sign in to comment.