Skip to content
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

Can't choose other db schema than public in supabaseDataProvider #31

Closed
spyriaev opened this issue Mar 13, 2023 · 2 comments
Closed

Can't choose other db schema than public in supabaseDataProvider #31

spyriaev opened this issue Mar 13, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@spyriaev
Copy link

spyriaev commented Mar 13, 2023

I can't change a schema different from the public one passing a parameterized supbaseClient to supabaseDataProvider.

const options: SupabaseClientOptions<"stats"> = {
    db: { schema: 'stats' }
}
export const supbaseClient =
    createClient<StatsDatabase>(process.env.NEXT_PUBLIC_SUPABASE_URL!,
        process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
        options);

Would you mind considering to use generic parameters in supabaseDataProvider?

@djhi djhi added the enhancement New feature or request label Mar 13, 2023
@djhi
Copy link
Collaborator

djhi commented Oct 3, 2023

Sure, can you open a PR?

@slax57
Copy link
Contributor

slax57 commented Jan 25, 2024

Fixed via #47

@slax57 slax57 closed this as completed Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants