Skip to content

Commit 697b34d

Browse files
authored
Update README.md
Add update of data
1 parent 7c7d50b commit 697b34d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,17 @@ data = supabase.table("countries").select("*").execute()
140140
assert len(data.get("data", [])) > 0
141141
```
142142

143+
#### Update of Data
144+
145+
```python
146+
from supabase import create_client, Client
147+
148+
url: str = os.environ.get("SUPABASE_TEST_URL")
149+
key: str = os.environ.get("SUPABASE_TEST_KEY")
150+
supabase: Client = create_client(url, key)
151+
data = supabase.table("countries").update({"country": "Indonesia", "capital_city": "Jakarta"}).eq("id", "1").execute()
152+
```
153+
143154
## Realtime Changes
144155

145156
```python

0 commit comments

Comments
 (0)