- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
♻️ Preparations in webserver to integrate asyncpg engine #6466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ Preparations in webserver to integrate asyncpg engine #6466
Conversation
          Codecov ReportAttention: Patch coverage is  
 Additional details and impacted files@@            Coverage Diff            @@
##           master   #6466      +/-   ##
=========================================
+ Coverage    84.5%   87.8%    +3.3%     
=========================================
  Files          10    1229    +1219     
  Lines         214   53044   +52830     
  Branches       25    1043    +1018     
=========================================
+ Hits          181   46616   +46435     
- Misses         23    6242    +6219     
- Partials       10     186     +176     
 Flags with carried forward coverage won't be shown. Click here to find out more. 
  | 
    
5dbb251    to
    54179cd      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I'm only worried of the extra connections to Postgres when we have 3 engines connected from webserver.
          
 @GitHK Some notes on your comment: 
  | 
    
          
 | 
    



What do these changes do?
As a step into migrating from
aiopgintoasyncpg(#4529) this PR starts isolating the different engines used in the repo, specifically in thewebserver.webserverapp currently initializes two engines and we will have a third one in the transition toasyncpg, specifically:aiopgengine (deprecated). SEEdb._aiopgasyncpg.Pool(deprecated). SEElogin.storageasyncpgengine integrated viasqlalchemy.ext.asyncio(new) . SEEdb._asyncpgtest_db.py::test_all_pg_engines_in_appHighlights
servicelib: Unifies api to setup/teardown asyncio enginesdb_asyncio_engineimplementation forservicelib.aiohttpandservicelib.fastapi.web-server'sdbplugin integrates an additionalasyncpgengine.Related issue/s
How to test
Driving test
Dev-ops checklist
NOne