incodevelop

  • 홈

is there any way to add values to an array column with update? 1

2024.06.20 SQL문으로 기존 배열에 데이터 갈아끼우지 않고 추가하기

🚨  TroubleShotting문제 발생의 배경 - As IsSupabase에 quiz_like라는 테이블에 users라는 column을 user_id의 배열(text[])로 타입을 정해두었다.이 users라는 column을 한 번의 통신으로 update하고 싶었으나,기존 supabase의 update 메서드는 기존 걸 갈아바꾸는 메서드라서 기존의 것을 select 한 뒤 update 하는 총 두 번의 네트워크 통신이 발생했다.내가 원한 것은 한번의 통신으로 기존 것에 추가되도록 하고 싶은 와중에 구글에 찾아보니 이런 글이 있었다.https://github.com/orgs/supabase/discussions/1570 Is there any way to add values to an array col..

TIL 2024.06.22
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 N
    • TIL N

Tag

sharedworker, zod, is there any way to add values to an array column with update?, 기존 데이터에 추가, server-action, api_url, 낙관적업데이트, 함수실행시점, useoptimistic(), webpack-loader, revalidatepath(), deploy.yaml, rootlayout, closure, websocket, usetransition(), useformstatus(), intersection-observer없이, next.js, useformstate(),

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바