Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlalchemy get schema from database

from sqlalchemy import MetaData, create_engine

CONN = create_engine(DB_URL, client_encoding="UTF-8")

META_DATA = MetaData(bind=CONN, reflect=True)

USERS_TABLE = META_DATA.tables['users']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sqlalchemy #schema #database
ADD COMMENT
Topic
Name
1+4 =