SQLAlchemy works on top of the DB-API. It can use psycopg2 to connect to PostgreSQL or any other driver that implements the API, such as pg8000. There are several components that belong to the Core of SQLAlchemy:
- Dialects: Used to communicate with a particular database driver. SQLAlchemy has several dialects for different databases, such as Oracle, MS SQL Server, PostgreSQL, and MySQL. Each of the dialects of SQLAlchemy requires the respective Python library to be installed.
- Connection-pooling component: Responsible for establishing connections to databases using a dialect, managing connection pools, and providing a connection API to the Engine.
- Engine: Represents the database for other components that perform ...