-
-
Notifications
You must be signed in to change notification settings - Fork 258
Please provide more info on return types from execute #115
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
Comments
Hi! Thanks for reporting. We have an open PR to solve this, which only needs a few tests to be written |
Btw, that None value is intended to be the |
I am finding the return types are different also from selecting data, to inserting/updating, looking forward to the PR :) |
Hi! This issue should be solved with the new version of postgrest-py and supabase-py, we use a pydantic model now to represent a Response, which has two properties, data and count, and you'll get an APIError raised if the call returns an error 🙂. Closing this issue, but feel free to reopen or comment here if you have any more concerns, thanks! |
In which supabase version was this implemented? I still get type Any pretty much everywhere when executing supabase queries in python. Using supabase==1.0.3 |
The return types from execute currently require trial and error to unpack. Would it be possible to add more information in the README.md explaining what the potential return types are and what they mean?
e.g. the returned value seems to have changed from a prior version of
postgrest-py
: it now returns a tuple of data and aNone
value. But it isn't clear what thisNone
value represents and how to handle potential response errors on the return types?The text was updated successfully, but these errors were encountered: