Skip to content

Commit

Permalink
feat: make SQLAlchemy pool class configurable + add tracer to db.py a…
Browse files Browse the repository at this point in the history
…nd dbview.py (#855)

* feat: add tracer to db.py and dbview.py

* fix: make lint

* fix: use a single `with` statement

Fix lint error: SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements

* fix: make format

* feat: make poolclass configurable

Default class is QueuePool with default engine options.

If a custom poolclass is set the default engine options are empty and must be set manually.

* fix: import queue pool in root

* fix: pyright
  • Loading branch information
thinkh authored Aug 23, 2023
1 parent 4d24321 commit 2486542
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 227 deletions.
Loading

0 comments on commit 2486542

Please sign in to comment.