Skip to content

Commit

Permalink
Bump version to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lqmanh committed Aug 10, 2020
1 parent 32f9fba commit 5cfc52b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,6 +1,6 @@
## CHANGELOG

### Unreleased
### v0.2.0

#### Added

Expand Down
17 changes: 11 additions & 6 deletions README.md
Expand Up @@ -30,7 +30,7 @@ from postgrest_py import PostgrestClient

async def main():
async with PostgrestClient("http://localhost:3000") as client:
r = await client.from_("countries").select("*")
r = await client.from_("countries").select("*").execute()
countries = r.json()

asyncio.run(main())
Expand All @@ -39,23 +39,28 @@ asyncio.run(main())
### Create

```py
await client.from_("countries").insert({
"name": "Việt Nam",
"capital": "Hà Nội",
})
await client.from_("countries").insert({ "name": "Việt Nam", "capital": "Hà Nội" }).execute()
```

### Read

```py
r = await client.from_("countries").select("id", "name")
r = await client.from_("countries").select("id", "name").execute()
countries = r.json()
```

### Update

```py
await client.from_("countries").eq("name", "Việt Nam").update({"capital": "Hà Nội"}).execute()
```

### Delete

```py
await client.from_("countries").eq("name", "Việt Nam").delete().execute()
```

### General filters

### Stored procedures (RPC)
Expand Down
2 changes: 1 addition & 1 deletion postgrest_py/__version__.py
@@ -1 +1 @@
__version__ = "0.1.1"
__version__ = "0.2.0"
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "postgrest_py"
version = "0.1.1"
version = "0.2.0"
description = "PostgREST client for Python. This library provides an ORM interface to PostgREST."
authors = ["Lương Quang Mạnh <luongquangmanh85@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 5cfc52b

Please sign in to comment.