]> git.ipfire.org Git - thirdparty/psycopg.git/commit
refactor(pool): more logical ordering for kwargs
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 14 Oct 2023 07:59:57 +0000 (09:59 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 14 Oct 2023 07:59:57 +0000 (09:59 +0200)
commit7b4e7a899926f2012eddca31c0f67d1ba06a0c33
tree710ff6f6a97fbaa6be4dcd736d4a083e35e5b273
parent7c7bcf93a0ce22a65bd8132052a7d051056ea188
refactor(pool): more logical ordering for kwargs

- conn construction params (class, kwargs, the class affects the pool
  type annotations so first is better);
- sizing (documented as an important parameter for the pool);
- open?
- callbacks (in the order they are used);
- name;
- other details more unlikely to be touched.

The order is the same in docs and code.
docs/api/pool.rst
psycopg_pool/psycopg_pool/null_pool.py
psycopg_pool/psycopg_pool/null_pool_async.py
psycopg_pool/psycopg_pool/pool.py
psycopg_pool/psycopg_pool/pool_async.py