-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
194 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
func:test_read_python_file__var:(((), {'variable': ['sql']}))__took: 0.001723 sec | ||
func:test_read_python_file__var:(((), {'variable': ['sql']}))__took: 0.001756 sec | ||
|
||
func:test_read_file__var:(((), {}))__took: 0.005423 sec | ||
func:test_read_file__var:(((), {}))__took: 0.004506 sec | ||
|
||
func:test_read_python_file__var:(((), {}))__took: 0.003344 sec | ||
func:test_read_python_file__var:(((), {}))__took: 0.001280 sec | ||
|
||
func:test_double_select__var:(((), {}))__took: 0.000642 sec | ||
func:test_double_select__var:(((), {}))__took: 0.000313 sec | ||
|
||
func:test_select_from_groub_by_where__var:(((), {}))__took: 0.000595 sec | ||
func:test_select_from_groub_by_where__var:(((), {}))__took: 0.000471 sec | ||
|
||
func:test_is_not_null__var:(((), {}))__took: 0.000583 sec | ||
func:test_is_not_null__var:(((), {}))__took: 0.000264 sec | ||
|
||
func:test_distinct__var:(((), {}))__took: 0.001059 sec | ||
func:test_distinct__var:(((), {}))__took: 0.000390 sec | ||
|
||
func:test_create_table_if_not_exists__var:(((), {}))__took: 0.000418 sec | ||
func:test_create_table_if_not_exists__var:(((), {}))__took: 0.000404 sec | ||
|
||
func:test_read_python_file__var:(((), {'variable': ['sql', 'query_template', 'query']}))__took: 0.001387 sec | ||
func:test_read_python_file__var:(((), {'variable': ['sql', 'query_template', 'query']}))__took: 0.001234 sec | ||
|
||
func:test_read_python_multifile__var:(((), {}))__took: 0.002904 sec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
query = """ | ||
select * from languages; | ||
""" | ||
|
||
query = """ | ||
select * | ||
from games | ||
where test=0 | ||
""" | ||
|
||
|
||
def get_query1(): | ||
query = ( | ||
f"SELEct max(weight) from world where ocean='Atlantic' and water in not null" | ||
) | ||
return query | ||
|
||
|
||
def get_query2(): | ||
limit = 6 | ||
query = f"SELEct speed from world where animal='dolphin' limit {limit}" | ||
return query | ||
|
||
|
||
def get_query3(): | ||
query = 'select 5' | ||
return query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
query = """ | ||
SELECT * FROM languages; | ||
""" | ||
|
||
query = """ | ||
SELECT * | ||
FROM games | ||
WHERE test=0 | ||
""" | ||
|
||
|
||
def get_query1(): | ||
query = ( | ||
f"SELECT MAX(weight) FROM world WHERE ocean='Atlantic' and water in NOT null" | ||
) | ||
return query | ||
|
||
|
||
def get_query2(): | ||
limit = 6 | ||
query = f"SELECT speed FROM world WHERE animal='dolphin' LIMIT {limit}" | ||
return query | ||
|
||
|
||
def get_query3(): | ||
query = 'SELECT 5' | ||
return query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
query = """ | ||
select * from languages; | ||
""" | ||
|
||
query = """ | ||
select * | ||
from games | ||
where test=0 | ||
""" | ||
|
||
|
||
def get_query1(): | ||
query = ( | ||
f"SELEct max(weight) from world where ocean='Atlantic' and water in not null" | ||
) | ||
return query | ||
|
||
|
||
def get_query2(): | ||
limit = 6 | ||
query = f"SELEct speed from world where animal='dolphin' limit {limit}" | ||
return query | ||
|
||
|
||
def get_query3(): | ||
query = 'select 5' | ||
return query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
query = """ | ||
SELECT * FROM languages; | ||
""" | ||
|
||
query = """ | ||
SELECT * | ||
FROM games | ||
WHERE test=0 | ||
""" | ||
|
||
|
||
def get_query1(): | ||
query = ( | ||
f"SELECT MAX(weight) FROM world WHERE ocean='Atlantic' and water in NOT null" | ||
) | ||
return query | ||
|
||
|
||
def get_query2(): | ||
limit = 6 | ||
query = f"SELECT speed FROM world WHERE animal='dolphin' LIMIT {limit}" | ||
return query | ||
|
||
|
||
def get_query3(): | ||
query = 'SELECT 5' | ||
return query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters