Skip to content

Commit 1085298

Browse files
committed
add pretty argument pass through
1 parent 597839f commit 1085298

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

build/lib/data_algebra/db_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,8 @@ def execute(self, q):
995995
q = str(q)
996996
self.db_model.execute(conn=self.conn, q=q)
997997

998-
def to_sql(self, ops):
999-
return ops.to_sql(self.db_model)
998+
def to_sql(self, ops, *, pretty=False):
999+
return ops.to_sql(self.db_model, pretty=pretty)
10001000

10011001
def eval(self, ops, *, data_map=None, result_name=None, eval_env=None, narrow=True):
10021002
query = ops.to_sql(self.db_model)

coverage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ data_algebra/util.py 28 4 86%
103103
TOTAL 4144 947 77%
104104

105105

106-
============================= 125 passed in 9.17s ==============================
106+
============================= 125 passed in 9.23s ==============================

data_algebra/db_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,8 @@ def execute(self, q):
995995
q = str(q)
996996
self.db_model.execute(conn=self.conn, q=q)
997997

998-
def to_sql(self, ops):
999-
return ops.to_sql(self.db_model)
998+
def to_sql(self, ops, *, pretty=False):
999+
return ops.to_sql(self.db_model, pretty=pretty)
10001000

10011001
def eval(self, ops, *, data_map=None, result_name=None, eval_env=None, narrow=True):
10021002
query = ops.to_sql(self.db_model)
14 Bytes
Binary file not shown.

dist/data_algebra-0.6.0.tar.gz

12 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)