Skip to content

Commit 3dc52de

Browse files
committed
add with_values param for get_sql() method
1 parent a19f053 commit 3dc52de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simple_query_builder/querybuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ def add_semicolon(self, sql: str = "") -> str:
136136

137137
return new_sql
138138

139-
def get_sql(self) -> str:
139+
def get_sql(self, with_values: bool = True) -> str:
140140
sql = self._sql
141141
params = self._params
142-
if params:
142+
if params and with_values:
143143
# Replace ? with markers
144144
for p in params:
145145
if isinstance(p, str):

0 commit comments

Comments
 (0)