Skip to content

Commit 5cfc52b

Browse files
committed
Bump version to 0.2.0
1 parent 32f9fba commit 5cfc52b

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## CHANGELOG
22

3-
### Unreleased
3+
### v0.2.0
44

55
#### Added
66

README.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ from postgrest_py import PostgrestClient
3030

3131
async def main():
3232
async with PostgrestClient("http://localhost:3000") as client:
33-
r = await client.from_("countries").select("*")
33+
r = await client.from_("countries").select("*").execute()
3434
countries = r.json()
3535

3636
asyncio.run(main())
@@ -39,23 +39,28 @@ asyncio.run(main())
3939
### Create
4040

4141
```py
42-
await client.from_("countries").insert({
43-
"name": "Việt Nam",
44-
"capital": "Hà Nội",
45-
})
42+
await client.from_("countries").insert({ "name": "Việt Nam", "capital": "Hà Nội" }).execute()
4643
```
4744

4845
### Read
4946

5047
```py
51-
r = await client.from_("countries").select("id", "name")
48+
r = await client.from_("countries").select("id", "name").execute()
5249
countries = r.json()
5350
```
5451

5552
### Update
5653

54+
```py
55+
await client.from_("countries").eq("name", "Việt Nam").update({"capital": "Hà Nội"}).execute()
56+
```
57+
5758
### Delete
5859

60+
```py
61+
await client.from_("countries").eq("name", "Việt Nam").delete().execute()
62+
```
63+
5964
### General filters
6065

6166
### Stored procedures (RPC)

postgrest_py/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.1"
1+
__version__ = "0.2.0"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "postgrest_py"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
description = "PostgREST client for Python. This library provides an ORM interface to PostgREST."
55
authors = ["Lương Quang Mạnh <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)