From 51a9d9d24a8557d2f14e45438f567349c451bafb Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Thu, 25 Jan 2007 19:25:23 +0000 Subject: [PATCH] add pool_size to "list of all standard options" --- doc/build/content/dbengine.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/build/content/dbengine.txt b/doc/build/content/dbengine.txt index 60a3fefd8c..d6c39c3d5a 100644 --- a/doc/build/content/dbengine.txt +++ b/doc/build/content/dbengine.txt @@ -95,7 +95,8 @@ A list of all standard options, as well as several that are used by particular d * **echo=False** - if True, the Engine will log all statements as well as a repr() of their parameter lists to the engines logger, which defaults to sys.stdout. The `echo` attribute of `Engine` can be modified at any time to turn logging on and off. If set to the string `"debug"`, result rows will be printed to the standard output as well. This flag ultimately controls a Python logger; see [dbengine_logging](rel:dbengine_logging) for information on how to configure logging directly. * **echo_pool=False** - if True, the connection pool will log all checkouts/checkins to the logging stream, which defaults to sys.stdout. This flag ultimately controls a Python logger; see [dbengine_logging](rel:dbengine_logging) for information on how to configure logging directly. * **encoding='utf-8'** - the encoding to use for all Unicode translations, both by engine-wide unicode conversion as well as the `Unicode` type object. -* **max_overflow=10** - the number of connections to allow in connection pool "overflow", that is connections that can be opened above and beyond the initial setting, which defaults to five. this is only used with `QueuePool`. +* **pool_size=5** - the number of connections to always maintain open +* **max_overflow=10** - the number of connections to allow in connection pool "overflow", that is connections that can be opened above and beyond the pool_size setting, which defaults to five. this is only used with `QueuePool`. * **module=None** - used by database implementations which support multiple DBAPI modules, this is a reference to a DBAPI2 module to be used instead of the engine's default module. For Postgres, the default is psycopg2, or psycopg1 if 2 cannot be found. For Oracle, its cx_Oracle. * **pool=None** - an actual pool instance. Note that an already-constructed pool should already know how to create database connections, so this option supercedes any other connect options specified. Typically, it is an instance of `sqlalchemy.pool.Pool` to be used as the underlying source for connections. For more on connection pooling, see [pooling](rel:pooling). -- 2.47.2