Skip to content

Conversation

darora
Copy link
Contributor

@darora darora commented Aug 18, 2021

Fixes supabase/postgrest-py#7 and #30

Why are we monkey patching postgrest-py here? If we really need to hide the async reality and offer a synchronous interface, can we move it down to the postgrest-py layer so at least it's tested and kept in sync?

@fedden
Copy link
Contributor

fedden commented Aug 18, 2021

Agreed on moving the requests/sync stuff to the postgrest-py lib.

Why are we monkey patching postgrest-py here?

It was supposed to be a temporary measure to provide an easy interface for the supabase users so we could get a release quickly out of the door, but agreed moving this to postgrest would be preferable.

elif method == "patch":
func = requests.patch
additional_kwargs = {"json": self.json}
elif method == "delete":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The error message: 'Error in $: not enough input' does not provide any hints on what is actually wrong.
2 participants