elhe26
03/25/2022, 1:51 PMelhe26
03/25/2022, 1:52 PMbegin
insert into public.Users(email, password, acctKey, updatedAt)
values (email, crypt(password, gen_salt('bf')), acctkey, updatedat) returning id, password;
end;
Advanced Settings
Language: * plpgsql*
Type of security: Security Definerelhe26
03/25/2022, 2:01 PMlet {data, error } = await supabaseClient.rpc('function_one', {
'email': 'john@example.com',
'password': 'mypass',
'acctkey':'key1',
'updatedat': Date.now()
});
elhe26
03/25/2022, 2:07 PMPLPGSQL
, AUTOINC
, and PGCRYPTO
on Extensions page.elhe26
03/25/2022, 2:14 PM