incodevelop

  • 홈

기존 데이터에 추가 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
다음
더보기
프로필사진

  • 분류 전체보기
    • TIL

Tag

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바