Closed manvillej closed 4 years ago
Merging #23 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #23 +/- ##
=====================================
Coverage 0.3% 0.3%
=====================================
Files 36 36
Lines 650 650
=====================================
Hits 2 2
Misses 648 648
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 0191433...59ba172. Read the comment docs.
@rbw I think this should be all set
Sorry about that delay.
The examples are clearer in 0.3 thanks to the introduction of built-in schemas and the Snow.get_table
method.
An example from: https://github.com/rbw/snow/blob/master/examples/table/read/one.py
from snow.schemas.table import IncidentSchema as Incident
async def main(app):
async with app.get_table(Incident) as inc:
response = await inc.get_one(Incident.number == "INC0010240")
print(response["description"])
Thanks for the suggestion.
I think this example is a little bit clearer. Clarifying that (what was Incident) is a schema and can be reused multiple times.