Skip to content

Commit

Permalink
Better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
spookylukey committed Nov 21, 2022
1 parent 7b65c65 commit 558d3d7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions examples/sql_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,18 @@ class Select:

def test_select():
assert select.parse("SELECT thing, stuff, 123, 'hello' FROM my_table WHERE id = 1;") == Select(
columns=[Field("thing"), Field("stuff"), Number(123), String("hello")],
columns=[
Field("thing"),
Field("stuff"),
Number(123),
String("hello"),
],
table=Table("my_table"),
where=Comparison(left=Field("id"), operator=Operator.EQ, right=Number(1)),
where=Comparison(
left=Field("id"),
operator=Operator.EQ,
right=Number(1),
),
)


Expand Down

0 comments on commit 558d3d7

Please sign in to comment.