instrumentation

How to discover table properties from SQLAlchemy mapped object

How to discover table properties from SQLAlchemy mapped object Question: I have a class mapped with a table, in my case in a declarative way, and I want to “discover” table properties, columns, names, relations, from this class: engine = create_engine(‘sqlite:///’ + databasePath, echo=True) # setting up root class for declarative declaration Base = declarative_base(bind=engine) …

Total answers: 2