Reputation: 176
A simple question, as stated in the title.
This is the general structure of how a connection is established in the SQLAlchemy.
But I don't understand what is this Pool and Dialect. Could anyone help me with a simple explanation of it?
(I am new to learning SQLAlchemy, but I know DBMS)
Upvotes: 1
Views: 826
Reputation: 56
Pool:
simply means collection of active database connection objects. Instead of creating new connections objects that is costly operation, we mostly reuse already created connection objects in pool, to send queries to database.
Dialect:
Actually Sqlalchemy makes it possible for your code to communicate with multiple databases (like Postgres,Mysql,MS,Oracal etc.).Dialect is like a personal secretary to Sqlalchemy that makes Sqlalchemy aware of specific database it has to communicate with.
Upvotes: 4