postgrest-py
postgrest-py copied to clipboard
Implemement maybeSingle method
Hey @dreinon, can I work on this?
How is the maybe_single method different from single?
How is the maybe_single method different from
single?
The single method raises an error if the db response record count is different from 1 (if it doesn't find any records, it would raise an error). The maybeSingle method raises an error only if the db response record count is greater than 1, being 0 and 1 records valid.
Thanks for the explanation! 😄