* Fix for Starlette CORS
The Starlette app with setting cors=true enables all origins, but only permits requests with the GET method. The CORSMiddleware for Starlette requires specifying `allow_methods=['*']` to enable all common request methods.
* Add noqa to break line break
This line was flagged by flake 8 for being 81 characters. I think that this line it more readable as is rather than splitting up into multiple lines.
* Revise indentation on CORS middleware
* Update setup.py
Release 0.17.0 is incompatible with Python < 3.8
"python_requires" added to only install this version with python >= 3.9
* Update setup.py
* Release Process Manager backed by Postgresql
* Update postgresdb_.py
* Changes as for Tom comment on 16.7
* Update postgresql.py
* Included further Tom suggestions
* Renamed Manager requirements file
* renamed table job_info -> jobs
* Update postgres_manager_full_structure.backup.sql
* Update postgresql.py
* Update requirements-manager.txt
Accepted @Tom requirement.
I found the issue about compiling psycopg2:
it was a bug in my configuration.
* Modified to adhere to CI
* Update postgresql.py
---------
Co-authored-by: FrancescoIngv <FrancescoIngv@users.noreply.github.com>
* Update test_tinydb_manager_for_parallel_requests.py
Updated the call to execute_process
and now checks the expected number of process results are present.
* Update test_tinydb_manager_for_parallel_requests.py
---------
Co-authored-by: FrancescoIngv <FrancescoIngv@users.noreply.github.com>
Co-authored-by: Tom Kralidis <tomkralidis@gmail.com>
* Implemented Connection Pooling
First part of collection pooling, improve by making pool size and other params configurable in YAML file of pygeoapi
* updated session pooling with more robust creation of dsn
* Further changes for releasing connections
* further little tweaks
* Added Thread Lock and building of DSN
* Session Pooling now only happens when ENV VAR ORACLE_POOL_MIN and ORACLE_POOL_MAX are set. Else usual behaviour is restored and single connections are opened and closed. Added a Lock for avoiding race conditions and threat safety.
* Flake8 changes
* More Flake8
* Added integer type to env variables
* Added Tests for Session Pooling
* Flake 8 changes for tests
* More Flake8 fun
* Fixed typo for env vars
* Fixed typo for env var and added noqa for variables
* More Typos
* More Flake8
* Added documentation to the oracle section for session pooling
* Review and Feedback with @totycro
* Update oracle.py
Added Author
* Added feedback from review
---------
Co-authored-by: root <root@els01entw.ama.at>
Co-authored-by: xlanger <moritz.langer@ama.gv.at>