Nenhuma descrição

connect.py 275B

1234567
  1. import sqlalchemy as db
  2. # import mysqlclient
  3. # mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>]
  4. engine = db.create_engine('mysql+pymysql://registro_escolar:mwgzHRXTPrS3JEnd@localhost/registro_escolar')
  5. connection = engine.connect()
  6. metadata = db.MetaData()