Skip to content

ChangeSchema function in supabase.Client #17

Description

@hemanth-gopi

Feature request

ChangeSchema function required to work with different schemas

Describe the solution you'd like

rest field is private for some reason in the supabase.Client

type Client struct {
	// Why is this a private field??
	rest    *postgrest.Client
        ....
}

So it is not possible to write a wrapper function as well. Hence providing a ChangeSchema function would help change the schema once the client is initialised

func (c *Client) ChangeSchema(schema string) (*Client, error) {
    c.rest = c.rest.ChangeSchema(schema)
    return c
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions