Take the 2-minute tour ×

What exactly is MetaData SQLAlchemy? I have a hard time understanding this.

And what is the difference between MetaData and Engine?

share|improve this question

1 Answer 1

up vote 11 down vote accepted

Metadata is a collection of table definitions. Engine is the dialect and connection details of a specific database, along with a connection pool that holds any connections already established with that database.

share|improve this answer
Thanks for the answer. I didn't realize Metadata was a collection of table definitions. But I had intuition that Engine was just that. –  bodacydo Feb 23 '10 at 10:45

Your Answer


