title: SQLAlchemy: Get database name from engine
body: <p>After creating an SQLALchemy <code>engine</code> like this</p>
  
  <pre><code>engine = create_engine('mssql+pyodbc://user:pass@dbserver:port/db_name?driver=ODBC+Driver+13+for+SQL+Server)
  </code></pre>
  
  <p>Is there a way to get <code>db_name</code> from the engine-object? I know I can parse the name from the connection string but is there a better way of doing this? I had a look at the <a href="https://docs.sqlalchemy.org/en/latest/core/connections.html#sqlalchemy.engine.Engine" rel="noreferrer">SQLAlchemy-API</a> but couldn't find an answer.</p>