----------------------------------------------------------------
SQLAlchemy performs application-level connection pooling automatically
-in most cases. With the exception of SQLite, a :class:`_engine.Engine` object
-refers to a :class:`.QueuePool` as a source of connectivity.
+in most cases. For all included dialects (except SQLite when using a
+"memory" database), a :class:`_engine.Engine` object refers to a
+:class:`.QueuePool` as a source of connectivity.
For more detail, see :ref:`engines_toplevel` and :ref:`pooling_toplevel`.
I am using multiple connections with a SQLite database (typically to test transaction operation), and my test program is not working!
----------------------------------------------------------------------------------------------------------------------------------------------------------
-If using a SQLite ``:memory:`` database, or a version of SQLAlchemy prior
-to version 0.7, the default connection pool is the :class:`.SingletonThreadPool`,
-which maintains exactly one SQLite connection per thread. So two
-connections in use in the same thread will actually be the same SQLite
-connection. Make sure you're not using a :memory: database and
-use :class:`.NullPool`, which is the default for non-memory databases in
-current SQLAlchemy versions.
+If using a SQLite ``:memory:`` database the default connection pool is the
+:class:`.SingletonThreadPool`, which maintains exactly one SQLite connection
+per thread. So two connections in use in the same thread will actually be
+the same SQLite connection. Make sure you're not using a :memory: database
+so that the engine will use :class:`.QueuePool` (the default for non-memory
+databases in current SQLAlchemy versions).
.. seealso::
@property
def foreign_key_constraint_name_reflection(self):
- """Target supports refleciton of FOREIGN KEY constraints and
+ """Target supports reflection of FOREIGN KEY constraints and
will return the name of the constraint that was used in the
"CONSTRAINT <name> FOREIGN KEY" DDL.
@property
def constraint_comment_reflection(self):
- """indicates if the database support constraint on constraints
+ """indicates if the database support comments on constraints
and their reflection"""
return exclusions.closed()