Comments (12)
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.
Temporary workaround is to use .insert() with upsert=True
from supabase-py.
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.
@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.
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.
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.
Thanks!
from supabase-py.
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.
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()
from supabase-py.
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.
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.
@smandava98 how were you able to use supabase in a python project without using supabase-py ??
from supabase-py.
@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.
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)
- Storage upsert docs are incorrect HOT 9
- Use tox for automating tests in different venvs HOT 2
- Unify sync and async clients HOT 4
- Standardize markdown file syntax
- increasing the storage list limit beyond 100
- AttributeError: 'SyncRPCFilterRequestBuilder' object has no attribute 'limit' HOT 6
- When updating, PGRST102 is returned HOT 3
- Update dependency of httpx to 0.26 or higher HOT 13
- postgrest.exceptions.APIError, invalid input syntax for type vector HOT 2
- Test failures on Python 3.12 HOT 2
- Storage download failing due to JSON decode HOT 7
- Unbound `response` error HOT 3
- [DEP]: Add `websockets >=12.0 support` HOT 2
- The root logger has been used illegally.
- Full text search in python HOT 1
- Outdated Pydantic version
- Authorization headers silently shared between clients. HOT 3
- Cannot order by multiple columns
- Connection Keep Alive HOT 4
- Cannot chain multiple ilike or filter with ilike HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supabase-py.