sharpcdf
01/17/2022, 1:50 AMsharpcdf
01/17/2022, 1:52 AMhi
column that is hello world
, how would i filter it properly?sharpcdf
01/17/2022, 1:52 AMomgjjd
01/17/2022, 2:00 AMfunny
01/17/2022, 4:51 AMfunny
01/17/2022, 4:52 AMpoutingemoji
01/17/2022, 8:11 AMsql
create function increment (x int, row_id int)
returns void as
$$
update table_name
set field_name = field_name + x
where id = row_id
$$
language sql volatile;
js
const { data, error } = await supabase
.rpc('increment', { x: 1, row_id: 2 })
hey, ik i can increment a field like this but is there a way i can dynamically increment a field? like provide the column name through the rpc?poutingemoji
01/17/2022, 8:11 AMBogdwynny
01/17/2022, 9:08 AMpocin
01/17/2022, 9:12 AMhero76
01/17/2022, 9:12 AMtourdownunder
01/17/2022, 9:16 AMBogdwynny
01/17/2022, 9:28 AMhero76
01/17/2022, 9:29 AMpoutingemoji
01/17/2022, 9:48 AMhttps://cdn.discordapp.com/attachments/722720878932262952/932571227418144788/unknown.png▾
https://cdn.discordapp.com/attachments/722720878932262952/932571299186896917/unknown.png▾
https://cdn.discordapp.com/attachments/722720878932262952/932571436244148274/unknown.png▾
https://cdn.discordapp.com/attachments/722720878932262952/932571385476296704/unknown.png▾
https://cdn.discordapp.com/attachments/722720878932262952/932571558348742676/unknown.png▾
Bogdwynny
01/17/2022, 9:52 AMhero76
01/17/2022, 9:52 AMhero76
01/17/2022, 9:52 AMHal
01/17/2022, 9:54 AMnpx openapi-typescript .....
gives me no matches found: https://<myproject>.supabase.co/rest/v1/?apikey=<my-anon-key>
even though I got the json when visiting the link directly.
nvm, I must escape ?
in ../?apikey
poutingemoji
01/17/2022, 10:15 AMtourdownunder
01/17/2022, 10:31 AMauth.users
as you need to include the schema when not default? All the tables you create will be by default in the public
schema and you can leave it out.poutingemoji
01/17/2022, 10:33 AMglundgren
01/17/2022, 10:58 AMglundgren
01/17/2022, 10:59 AMglundgren
01/17/2022, 10:59 AMpoutingemoji
01/17/2022, 11:08 AMglundgren
01/17/2022, 11:08 AMglundgren
01/17/2022, 11:09 AMglundgren
01/17/2022, 11:09 AMglundgren
01/17/2022, 11:09 AM