mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
Add query2str
This commit is contained in:
parent
809a50f7d1
commit
ed938dd86a
1 changed files with 5 additions and 0 deletions
|
@ -65,3 +65,8 @@ def sanitize_email(email_address: str) -> str:
|
|||
if email_address:
|
||||
return email_address.lower().strip().replace(" ", "").replace("\n", " ")
|
||||
return email_address
|
||||
|
||||
|
||||
def query2str(query):
|
||||
"""Useful utility method to print out a SQLAlchemy query"""
|
||||
return query.statement.compile(compile_kwargs={"literal_binds": True})
|
||||
|
|
Loading…
Reference in a new issue