I have an existing MySQL database that I want to reflect using PonyORM.
I know I'm able to do that with SQLAlchemy:
engine = create_engine(...)
Base = declarative_base(metadata=MetaData(bind=engine))
...
...
class MyTable(Base):
__table__ = Table('table_name', Base.metadata, autoload=True)
Is there a similiar way to do the same with PonyORM? I couldn't find information about that in the website.
What is Pony Orm? Pony ORM is a free, open-source Python language library that makes database interactions easy.
Currently PonyORM does not have something like autoload=true
, so entities have to be declared in Python. We can add support of database reflection in the future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With