https://supabase.com/ logo
Join DiscordCommunities
Powered by
# help
  • f

    Flyken

    07/28/2021, 1:03 AM
    thanks a bunch!
  • c

    copple

    07/28/2021, 1:53 AM
    still ironing out the kinks. I'll remove this mod setting
  • f

    Flyken

    07/28/2021, 1:54 AM
    @User thanks mate :)
  • g

    grosse_tortue

    07/28/2021, 2:27 AM
    How can I set additional headers to requests made by the supabase client?
    Copy code
    ts
    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
    .
  • g

    grosse_tortue

    07/28/2021, 2:35 AM
    Looks like it's only available to change
    Authorization
    and the
    apikey
    header. Currently looking at
    _initSupabaseAuthClient
    , o well..
  • j

    jbergius

    07/28/2021, 4:28 AM
    Hey folks! Is it possible to change the language on the auth page? I'm using the Auth component from supabase-ui. Texts like "or continue with" and "Remember me" would be awesome if they were customizable
  • j

    jonny

    07/28/2021, 4:39 AM
    great idea! I was wondering if we should offer translations with this but customising the text might even be better. I'm guessing there's some 'on brand' language some devs might want to use rather than the generic language used currently.
  • j

    jbergius

    07/28/2021, 4:44 AM
    Cool! Yeah. In my case I'm implementing the auth on a side project of mine that has 99% users from my own country (Sweden) which makes it a bit strange to have the login page in a different language. Although it's english and not mandolin 😉 Let me know if I can help you with something!
  • i

    ikigai

    07/28/2021, 5:22 AM
    Hi everyone, Does
    supabase/cli
    supports postgres 13.3 (https://supabase.io/new/blog/2021/07/26/supabase-postgres-13) for local development?
  • s

    soedirgo

    07/28/2021, 5:27 AM
    @User we're currently rewriting the CLI in Go and adding migrations and stuff (in the
    new
    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)
  • s

    stibbs

    07/28/2021, 5:50 AM
    My project's API section has the below example. However my VSCode linting is telling me
    .insert
    is deprecated and to instead use
    .upsert
    ... which is correct? 🙂
    Copy code
    const { data, error } = await supabase
      .from('settings')
      .insert([{ some_column: 'someValue' }], { upsert: true })
  • o

    owlnai

    07/28/2021, 6:00 AM
    Upsert was made its own function some months ago for better DX (see https://github.com/supabase/postgrest-js/issues/161), so you could use
    Copy code
    JS
    const { data, error } = await supabase
      .from('settings')
      .upsert({ some_column: 'someValue' })
  • s

    stibbs

    07/28/2021, 6:08 AM
    Thanks 🙂
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 6:23 AM
    is there any doicumentation for using the DB with python?
  • l

    lawrencecchen

    07/28/2021, 7:00 AM
    There's a bit of documentation down here: https://github.com/supabase/supabase-py#authenticate
  • l

    lawrencecchen

    07/28/2021, 7:00 AM
    nothing as solid as supabase-js, unfortunately
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:00 AM
    yea I saw that
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:01 AM
    like I need to know how to delete, edit, add a row or a table and navigated thorough the db and tables using python
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:01 AM
    there isn't any documentation
  • l

    lawrencecchen

    07/28/2021, 7:02 AM
    wrong link sorry
  • l

    lawrencecchen

    07/28/2021, 7:02 AM
    https://github.com/supabase/postgrest-py#usage
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:02 AM
    hmm
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:02 AM
    lemme check
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:03 AM
    yea, so this is totally different from
    supabase_py
    so how to connect to the db using this?
  • l

    lawrencecchen

    07/28/2021, 7:03 AM
    it's the same -- supabase_py exposes this under the hood
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:03 AM
    oh
  • l

    lawrencecchen

    07/28/2021, 7:03 AM
    so supabase.table('idk').insert(???).execute()
  • l

    lawrencecchen

    07/28/2021, 7:03 AM
    or whatever crud you want 😉
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:04 AM
    hmm
  • u

    ! Class self.PythonAddict = True

    07/28/2021, 7:04 AM
    but there is no asyncio in
    supabase_io
    but its in
    postgrest_py
1...131415...316Latest