Skip to content

Conversation

thecoolwinter
Copy link
Contributor

What kind of change does this PR introduce?

  • Renames PostgrestClient.form() to PostgrestClient.from() to be the same as the other Supabase client libraries
  • Fixes a bug in PostgrestRpcBuilder where the method value was being given the schema parameter when creating the PostgrestTransformBuilder
  • Adds an RPC function test with parameters

This does introduce a breaking change

Changing form to from will cause an error to be thrown when compiling after updating the library. One fix would be to keep the original name alongside the new one but provide a depreciation warning. However the library is in alpha stage so that might be unnecessary.

Fixed a bug with the RPC builder setting the query builder's method to the RPC's schema.

Added a test for RPC functions.

Removed unnecessary testing framework.

Updated README.md
RPC builder was passing `schema` to the `method` property.
@meyerworks
Copy link

would be great to merge this to make rpc work

@thecoolwinter
Copy link
Contributor Author

Any chance this PR could be merged? Need the RPC builder to be fixed and it's been nearly 2 weeks and has been reviewed.

@grdsdev
Copy link
Contributor

grdsdev commented Aug 25, 2021

I think only @satishbabariya has write access to this, can you review and merge it?

@grdsdev grdsdev merged commit c3d3e45 into supabase-community:master Aug 30, 2021
@thecoolwinter thecoolwinter deleted the form-and-rpc branch December 1, 2021 23:01
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.

3 participants