Skip to content

Commit 5d3d6c2

Browse files
committed
add __str__() method
1 parent 3dc52de commit 5d3d6c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

simple_query_builder/querybuilder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,9 @@ def union_select(self, table: Union[str, dict], union_all: bool = False):
656656

657657
return self
658658

659+
def __str__(self):
660+
return self.get_sql()
661+
659662
def drop(self, table: str, add_exists: bool = True):
660663
# this method will be moved to another class
661664
if not table:

0 commit comments

Comments
 (0)