Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Generic User committed Nov 7, 2022
1 parent a6e1c3e commit f57850d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions easier/minimodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,15 @@ def drop(self, table_name):
else:
raise ValueError(f'{table_name} not in {self.table_names}')

def query(self, sql):
def query(self, sql, fetch=True):
"""
Run a SQL query against the database
"""
import pandas as pd
with self.connector.connection as connection:
df = pd.DataFrame(connection.query(sql))
return df
res = connection.query(sql)
if fetch:
return pd.DataFrame(connection.query(sql))


class MiniModelSqlite(MiniModelBase):
Expand Down
2 changes: 1 addition & 1 deletion easier/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.0'
__version__ = '1.2.2'

0 comments on commit f57850d

Please sign in to comment.