Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
150 stars 63 forks source link

Added support for CosmosDB v4 extension #175

Closed gavin-aguiar closed 1 year ago

gavin-aguiar commented 1 year ago

Added support for cosmos db v4 extension for the new programming model.

New decorators for cosmosdb:

Extension 2.x and 3.x

Extension 4.x and above

The new v4 cosmos db extension installation can be found here

The latest support configurations for the new programming model can be found here

codecov[bot] commented 1 year ago

Codecov Report

Merging #175 (80dff21) into dev (deafb79) will increase coverage by 0.23%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #175      +/-   ##
==========================================
+ Coverage   90.28%   90.51%   +0.23%     
==========================================
  Files          53       53              
  Lines        3046     3122      +76     
  Branches      809      815       +6     
==========================================
+ Hits         2750     2826      +76     
  Misses        219      219              
  Partials       77       77              
Flag Coverage Δ
unittests 90.48% <100.00%> (+0.23%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
azure/functions/decorators/cosmosdb.py 100.00% <100.00%> (ø)
azure/functions/decorators/function_app.py 99.25% <100.00%> (+0.05%) :arrow_up: