Delete utils.py
Browse files
utils.py
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
def remove_triple_quotes(sql_query):
|
| 3 |
-
print('the incoming sql_query is :\n', sql_query)
|
| 4 |
-
|
| 5 |
-
if sql_query.startswith('"""') and sql_query.endswith('"""'):
|
| 6 |
-
sql_query = sql_query[3:-3].strip()
|
| 7 |
-
print('the outgoing sql_query is :\n', sql_query)
|
| 8 |
-
return sql_query
|
| 9 |
-
|
| 10 |
-
elif sql_query.startswith("'''") and sql_query.endswith("'''"):
|
| 11 |
-
sql_query = sql_query[3:-3].strip()
|
| 12 |
-
print('the outgoing sql_query is :\n', sql_query)
|
| 13 |
-
return sql_query
|
| 14 |
-
|
| 15 |
-
elif sql_query.startswith("```") and sql_query.endswith("```"):
|
| 16 |
-
sql_query = sql_query[3:-3].strip()
|
| 17 |
-
print('the outgoing sql_query is :\n', sql_query)
|
| 18 |
-
return sql_query
|
| 19 |
-
|
| 20 |
-
else:
|
| 21 |
-
print('the outgoing sql_query is :\n', sql_query)
|
| 22 |
-
return sql_query
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|