Code Monkey home page Code Monkey logo

Comments (12)

mohnish7 avatar mohnish7 commented on May 10, 2024 2

Hello @dreinon - I am running into the same issue again despite having the latest supabase version.

I am trying to update a single column using id as the matching value. My id is stored in uuid format and is generated using uuid_generate_v4()

supabase_client.table("table").update({"field": "True"}).eq("id", str(local_data.iloc[x]['id'])).execute()

from supabase-py.

rphly avatar rphly commented on May 10, 2024

Temporary workaround is to use .insert() with upsert=True

from supabase-py.

fedden avatar fedden commented on May 10, 2024

Yes noticing this too. Is upsert actually working or is it simply inserting a new row? From what I've noticed it's inserting new rows so would be helpful to get confirmation thats what you are seeing. Perhaps request headers/jwt is misconfigured somehow..

from supabase-py.

rphly avatar rphly commented on May 10, 2024

@fedden it updates the row when I use insert with upsert=true.

To be clear, I don't think partial updates work.
What I'm doing is editing parts of the row and then executing db.table("notes").insert(data, upsert=True)

Think PUT not PATCH

from supabase-py.

remybroun avatar remybroun commented on May 10, 2024

It would be nice to have this documented somewhere. Without this issue there is no way to know how to update a row.

from supabase-py.

J0 avatar J0 commented on May 10, 2024

Hey @remybroun @rphly,

We have tested this issue and it seems to work fine now. We are closing this for now but please feel free to let us know if you're still facing any issues.
image

Thanks!

from supabase-py.

krishnerkar avatar krishnerkar commented on May 10, 2024

Hey @remybroun @rphly,

We have tested this issue and it seems to work fine now. We are closing this for now but please feel free to let us know if you're still facing any issues. image

Thanks!

I am still facing the same issue :(

res = supabase.table("Servers").update({"Server_ID" : "test-id, "Server_Name" : "test-server,"Channel_ID" : "test-channel", }).execute()

image

from supabase-py.

dreinon avatar dreinon commented on May 10, 2024

Make sure to update your supabase version to the latest and tell us if you still face the issue please 😊
@Krish-Nerkar

from supabase-py.

smandava98 avatar smandava98 commented on May 10, 2024

I recently faced this issue. If anyone comes across this again this was how I solved it:
I was using supabase-py instead of supabase. Also I updated supabase to latest version (1.0.3 as of this date) and my python version was 3.10.10.

from supabase-py.

Bobbyjsx avatar Bobbyjsx commented on May 10, 2024

@smandava98 how were you able to use supabase in a python project without using supabase-py ??

from supabase-py.

alananisimov avatar alananisimov commented on May 10, 2024

@smandava98 how were you able to use supabase in a python project without using supabase-py ??

You can try pip install supabase and you will have no errors))))

from supabase-py.

AkashC-goML avatar AkashC-goML commented on May 10, 2024

if you are using supabase_py or supabase-py instead use supabase alone to create client

it is working for me any more issues add a comment

from supabase-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.