6 lines
196 B
Python
6 lines
196 B
Python
|
def response_is_empty(query: str, connection) -> bool:
|
||
|
with connection.cursor() as cursor:
|
||
|
cursor.execute(query)
|
||
|
response = cursor.fetchall()
|
||
|
return len(response) == 0
|