https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • j

    jon.m

    08/16/2021, 3:28 AM
    I don't have a table called objects
  • j

    jon.m

    08/16/2021, 3:28 AM
    but i have storage
  • j

    jon.m

    08/16/2021, 3:28 AM
    could that be it?
  • j

    jon.m

    08/16/2021, 3:30 AM
    Hm, that was weird. I deleted all of the images I uploaded with that user and now I was able to delete the user.
  • j

    jon.m

    08/16/2021, 3:30 AM
    That's got to be an issue that was created somehow by my policies
  • c

    cataxcab

    08/16/2021, 4:58 AM
    Hi! I just want to make sure I'm getting this right, correct me if I'm wrong 😄 - Supabase as of now provides a DB with authentication integrated. - If we want to run serverless functions, we need to look elsewhere (like AWS Lambda). - It's possible to self host since this is open source.
  • c

    cataxcab

    08/16/2021, 5:09 AM
    My questions are: - Should I wait for Supabase functions or go with some other service? - If another service, which do you recommend? - Other services charge based on compute time of functions. Will DB operations, etc that happen in Supabase happen at the same speed regardless of the provider (say Lambda vs Supabase functions)? - Supabase can be self hosted - is there some migration plan where you can move all data from the hosted to a self-hosted instance?
  • m

    Marky

    08/16/2021, 6:06 AM
    Check out Vercel, it has serverless functions and integrates with supabase really easily
  • m

    Marky

    08/16/2021, 6:53 AM
    Anyone using Supabase Python client?
  • h

    hyochan

    08/16/2021, 7:31 AM
    Hello any reason why I am facing this?
  • m

    Marky

    08/16/2021, 7:50 AM
    I'm trying to update all records in a table to zero out all balances, but I am getting an error not enough input using the python client. I'm trying:
    data = supabase.table("inventory").update({"balance" : "0"}).execute()
    Response
    {'data': {'message': 'Error in $: not enough input'}, 'status_code': 400}
  • m

    Marky

    08/16/2021, 8:04 AM
    Also, is there a way to do an update where you add X to the existing value without first querying for the current value?
  • u

    user

    08/16/2021, 10:34 AM
    how do i have basic data in a table when a user is created? for example i want the user to have a few "posts" made in their DB / tables when they are created. so basically seeding the database for each user so they start out with the same post.
  • f

    florian-lefebvre

    08/16/2021, 10:36 AM
    You can use a trigger on insert on users table that triggers a function that inserts some data in the posts table
  • m

    Marky

    08/16/2021, 2:29 PM
    Triggers are still not recommended for production right?
  • s

    Scott P

    08/16/2021, 2:32 PM
    Truth be told, I'm not sure why 'Not production ready' tag is shown on the dashboard, since both postgres triggers and postgres functions have been integral to postgres for a very long time
  • f

    florian-lefebvre

    08/16/2021, 2:58 PM
    Writing triggers in the SQL editor is safe, the interface for the functions and the triggers is not production ready I think
  • m

    Marky

    08/16/2021, 3:03 PM
    Any idea why I can't do an update() with Python client?
  • u

    user

    08/16/2021, 3:06 PM
    Can you look in Postgres logs for more info?
  • m

    Marky

    08/16/2021, 3:06 PM
    How do I do that?
  • j

    jon.m

    08/16/2021, 3:28 PM
    Hi everyone - following up on an issue from last night. When trying to delete a user from the dashboard, I received a fk error. I had deleted all tables with constraints. But the error persisted. A user mentioned the error was on the objects table, so that pointed me to the storage I had set up. Deleting all of the images in a bucket that I uploaded with the user allowed me to delete the user. I'd like to remove this restriction, but I'm not sure how, or why it exists in the first place.
    j
    • 2
    • 7
  • m

    Marky

    08/16/2021, 3:48 PM
    The docs really need work
  • s

    Scott P

    08/16/2021, 3:51 PM
    There's an 'Edit this page' link at the bottom of every page. Constructive contributions and improvements are always appreciated
  • j

    jon.m

    08/16/2021, 4:38 PM
    Documentation is really hard to get perfect, doubly so when the product is new. I'd like to start writing some tutorials for getting up on running on Medium.
  • m

    Marky

    08/16/2021, 4:43 PM
    But end users shouldn’t struggle with basics
  • m

    Marky

    08/16/2021, 4:45 PM
    I can’t even figure out how to get update() to work, this is bread and butter of dbs.
  • j

    jon.m

    08/16/2021, 4:54 PM
    What's the issue with update?
  • j

    jon.m

    08/16/2021, 4:54 PM
    My updates are working, so I might be able to help.
  • t

    Tejas

    08/16/2021, 4:54 PM
    hey!
  • m

    Marky

    08/16/2021, 5:01 PM
    https://discord.com/channels/839993398554656828/839993398554656831/876734765804449813
1...777879...392Latest