sqlalchemy get schema from database

Solutions on MaxInterview for sqlalchemy get schema from database by the best coders in the world

showing results for - "sqlalchemy get schema from database"
María
06 Jun 2020
1from sqlalchemy import MetaData, create_engine
2
3CONN = create_engine(DB_URL, client_encoding="UTF-8")
4
5META_DATA = MetaData(bind=CONN, reflect=True)
6
7USERS_TABLE = META_DATA.tables['users']