Skip to content

Conversation

hemanth-gopi
Copy link

Add a ChangeSchema function to supabase Client that wraps the postgrest ChangeSchema method

What kind of change does this PR introduce?

Feature: Add a function to supabase Client

What is the current behavior?

There is no way to change schema once the Client is initialised

postgrest field is private which makes it impossible to use the same client for different schemas

What is the new behavior?

Adds a ChangeSchema method that wraps the postgrest method of the same name. This makes it easy to change the schema as per the requirements of the business logic

@hemanth-gopi
Copy link
Author

Closes #17

Add a ChangeSchema function to supabase Client that wraps the postgrest ChangeSchema method
@4cecoder
Copy link

This pull request introduces a new method to the Client struct in client.go to allow changing the schema of the client. Here are the most important changes:

  • Added ChangeSchema method to the Client struct to change the schema of the client. This method wraps the ChangeSchema method from the postgrest library and updates the rest field of the Client struct accordingly.

Couldn't this PR be closed?

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.

2 participants