Flyken
07/28/2021, 1:03 AMcopple
07/28/2021, 1:53 AMFlyken
07/28/2021, 1:54 AMgrosse_tortue
07/28/2021, 2:27 AMts
export let supabase = createClient(SUPABASE_URL, SUPABASE_KEY, {
headers: { yeet: 'splash' }
})
Doesn't seem to add the yeet
header, and it's not available in the obj if I do supabase.auth.api
.grosse_tortue
07/28/2021, 2:35 AMAuthorization
and the apikey
header. Currently looking at _initSupabaseAuthClient
, o well..jbergius
07/28/2021, 4:28 AMjonny
07/28/2021, 4:39 AMjbergius
07/28/2021, 4:44 AMikigai
07/28/2021, 5:22 AMsupabase/cli
supports postgres 13.3 (https://supabase.io/new/blog/2021/07/26/supabase-postgres-13) for local development?soedirgo
07/28/2021, 5:27 AMnew
branch here: https://github.com/supabase/cli/tree/new)
once it's done it should support any version the hosted DB uses (though you need to handle upgrading major versions manually)stibbs
07/28/2021, 5:50 AM.insert
is deprecated and to instead use .upsert
... which is correct? 🙂
const { data, error } = await supabase
.from('settings')
.insert([{ some_column: 'someValue' }], { upsert: true })
owlnai
07/28/2021, 6:00 AMJS
const { data, error } = await supabase
.from('settings')
.upsert({ some_column: 'someValue' })
stibbs
07/28/2021, 6:08 AM! Class self.PythonAddict = True
07/28/2021, 6:23 AMlawrencecchen
07/28/2021, 7:00 AMlawrencecchen
07/28/2021, 7:00 AM! Class self.PythonAddict = True
07/28/2021, 7:00 AM! Class self.PythonAddict = True
07/28/2021, 7:01 AM! Class self.PythonAddict = True
07/28/2021, 7:01 AMlawrencecchen
07/28/2021, 7:02 AMlawrencecchen
07/28/2021, 7:02 AM! Class self.PythonAddict = True
07/28/2021, 7:02 AM! Class self.PythonAddict = True
07/28/2021, 7:02 AM! Class self.PythonAddict = True
07/28/2021, 7:03 AMsupabase_py
so how to connect to the db using this?lawrencecchen
07/28/2021, 7:03 AM! Class self.PythonAddict = True
07/28/2021, 7:03 AMlawrencecchen
07/28/2021, 7:03 AMlawrencecchen
07/28/2021, 7:03 AM! Class self.PythonAddict = True
07/28/2021, 7:04 AM! Class self.PythonAddict = True
07/28/2021, 7:04 AMsupabase_io
but its in postgrest_py