metricq / aiocouch

🛋 An asynchronous client library for CouchDB 2.x and 3.x
https://aiocouch.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
29 stars 10 forks source link

Add `json` property to ``Document` class #52

Closed bmario closed 1 year ago

bmario commented 1 year ago

This property provides a convenient way to access the data stored in a document without the CouchDB internals.

Useful to quickly clone documents.

Closes #51 by superseding it.

codecov[bot] commented 1 year ago

Codecov Report

Merging #52 (fa52571) into master (5a42ab9) will increase coverage by 0.00%. Report is 5 commits behind head on master. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #52   +/-   ##
=======================================
  Coverage   97.15%   97.16%           
=======================================
  Files          13       13           
  Lines         950      953    +3     
=======================================
+ Hits          923      926    +3     
  Misses         27       27           
Files Changed Coverage Δ
aiocouch/document.py 90.96% <100.00%> (+0.15%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

adrienverge commented 1 year ago

More backward-compatible than #51 :+1: