https://supabase.com/ logo
Join Discord
Powered by
# help
  • u

    user

    07/30/2021, 12:03 PM
    Cc @copple I hope you don't mind me tagging
  • c

    copple

    07/30/2021, 12:26 PM
    Hey @User , we hope for this Discord to be community-led. But the team will help with any questions on our GitHub (https://github.com/supabase/supabase/discussions). For you particular question - you can check out
    pg-tap
    which might help (although I wouldn't personally use plv8 for production workloads when you have great JS frameworks like Next/Nuxt)
  • u

    user

    07/30/2021, 12:41 PM
    Gotcha, thanks
  • d

    DharmaraJ

    07/30/2021, 1:01 PM
    This is in 'database'
  • d

    DharmaraJ

    07/30/2021, 1:01 PM
    Table editor
  • m

    magicquin

    07/30/2021, 1:47 PM
    Having a similar issue, can create db from my platform, then the db user is unable to access that db, so assuming rights issue, however that db doesnt display unless you query pgdata
  • d

    DharmaraJ

    07/30/2021, 1:52 PM
    I had deleted
    storage
    and
    users
    table from database
  • d

    DharmaraJ

    07/30/2021, 1:52 PM
    Can I revert this 😦
  • m

    magicquin

    07/30/2021, 1:57 PM
    ouch
  • d

    DharmaraJ

    07/30/2021, 2:03 PM
    If anyone knows a solution please @ me 🙂
  • k

    Khan W

    07/30/2021, 2:18 PM
    where's the REST API documentation for PostgREST?
  • o

    owlnai

    07/30/2021, 2:21 PM
    https://postgrest.org/en/stable/api.html ?
  • k

    Khan W

    07/30/2021, 2:26 PM
    awesome thank you
  • l

    Lio

    07/30/2021, 2:51 PM
    I'd suggest remaking your project tbh
  • l

    Lio

    07/30/2021, 2:51 PM
    easier than trying to rebuild the tables imo
  • d

    DharmaraJ

    07/30/2021, 3:09 PM
    Alright thanks... Tbh they shouldn't be deletable at first place.
  • l

    Lio

    07/30/2021, 3:18 PM
    also true
  • a

    a d

    07/30/2021, 3:27 PM
    how do I create RPC in supabase
  • a

    a d

    07/30/2021, 3:28 PM
    im saving a simple query but it's not working
  • a

    a d

    07/30/2021, 3:28 PM
    when i do
    .rpc("name_of_query")
  • a

    a d

    07/30/2021, 3:28 PM
    is there any other way to declare RPC
  • s

    Scott P

    07/30/2021, 3:31 PM
    What's the query?
    rpc(<name: string, params?: object>)
    is the way to run them
  • a

    a d

    07/30/2021, 3:32 PM
    Im following this oficial guide to execute rpchttps://supabase.io/docs/reference/javascript/rpc
  • s

    Scott P

    07/30/2021, 3:32 PM
    If you run
    select * from my_function()
    via the SQL editor, does it return anything, or any errors?
  • a

    a d

    07/30/2021, 3:32 PM
    btw it's just creating table nothing query type.. but query was easier to say
  • a

    a d

    07/30/2021, 3:33 PM
    yep i m running it using website UI and it's working
  • a

    a d

    07/30/2021, 3:33 PM
    wait what? my_function() what's that
  • s

    Scott P

    07/30/2021, 3:35 PM
    That's just a psuedo name for a function - it's whatever your function is called
  • s

    Scott P

    07/30/2021, 3:35 PM
    If your function is called
    get_food
    , you'd run
    select * from get_food()
  • a

    a d

    07/30/2021, 3:37 PM
    this
1...262728...316Latest