6 lines
164 B
Python
6 lines
164 B
Python
from sqlalchemy.orm import Session
|
|
|
|
|
|
def db_uri_from_session(session: Session) -> str:
|
|
return str(session.get_bind().url.render_as_string(hide_password=False))
|