Skip to content

Multi-schema in test suite #14

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

Closed
soedirgo opened this issue Aug 7, 2020 · 1 comment
Closed

Multi-schema in test suite #14

soedirgo opened this issue Aug 7, 2020 · 1 comment

Comments

@soedirgo
Copy link
Member

soedirgo commented Aug 7, 2020

The test suite includes a test for multi-schema on PostgREST:

describe('test multi schema', () => {
const supabase = createClient('http://localhost:8000', 'examplekey', {schema: 'personal'})
it('should return a value from the other schema', async () => {
const response = await supabase
.from('users')
.eq('username', 'leroyjenkins')
.select('*')
assert(response.body.length === 1)
assert(response.body[0].username === 'leroyjenkins')
})

But adding schemas on-the-fly on KPS hasn't been implemented yet: https://github.com/supabase/infrastructure/issues/33.

I've also seen other weird quirks while testing #13, will figure it out before merging it.

@soedirgo
Copy link
Member Author

Closing this, n/a due to the TS migration.

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

No branches or pull requests

1 participant