반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- array
- til
- 생각정리
- 네트워크
- 트러블슈팅
- 코테
- Grafana
- react
- 자바스크립트
- WIL
- 생각로그
- 주간회고
- mysql
- MongoDB
- 리눅스
- CS
- 알고리즘
- Java
- js
- 회고
- 생각일기
- Git
- 기록
- javascript
- mongo
- nest.js
- 피드백
- next.js
- mongoose
- typescript
Archives
- Today
- Total
코딩일상
[supabse] custom schema 사용시 발생 에러 error code name PGRST106 본문
반응형
수퍼베이스 대시보드에서 아래 쪽으로 이동을 한후에 사용하고자하는 신규 스키마를 expose 시켜주면 된다.
{
code: 'PGRST106',
details: null,
hint: null,
message: 'The schema must be one of the following: public, graphql_public, tcrc'
}
추가로 이렇게 설정한 이후 @supabase/supabase-js 라이브러리 통해서 할경우
아래 코드와 같이 .schema를 지정해서 사용한다 하지 않을경우 public이 default이다.
// Initialize the JS client
import { createClient } from '@supabase/supabase-js'
const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY, { db: { schema: 'myschema' } })
// Make a request
const { data: todos, error } = await supabase.from('todos').select('*')
// You can also change the target schema on a per-query basis
const { data: todos, error } = await supabase.schema('myschema').from('todos').select('*')
참고
Using Custom Schemas | Supabase Docs
You need additional steps to use custom database schemas with data APIs.
supabase.com
The schema must be one of the following: public, storage, graphql_public · Issue #5884 · nextauthjs/next-auth
Environment npx envinfo --system --binaries --browsers --npmPackages "next,react,next-auth" System: OS: Windows 10 10.0.19044 CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor Memory: 7.41 GB / 15.93...
github.com
반응형
'개발 공부' 카테고리의 다른 글
[grafana] 대시보드 별 유저 권한 부여 하는 법 정리 (1) | 2024.10.23 |
---|---|
[grafana] export csv 한글깨짐 현상 해결법 (0) | 2024.10.17 |
[FE] 프론트 엔드 에서는 어떤식으로 디자인 패턴을 가져갈까? (0) | 2024.05.27 |
User-Agent 란??? 무엇인가 (0) | 2023.06.10 |
google.com이라는 url을 검색했을때 일어나는일 (1) | 2023.02.25 |
Comments