Skip to content

Commit 294cb38

Browse files
committed
Bump version to 0.2.1
1 parent 0233aef commit 294cb38

File tree

2 files changed

+38
-36
lines changed

2 files changed

+38
-36
lines changed

README.md

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ pip install postgresql-lock
1212

1313
### Supported database interfaces
1414

15-
- **asyncpg**
16-
- asynchronous
17-
- **psycopg2**
18-
- synchronous
19-
- **psycopg3**
20-
- asynchronous
21-
- synchronous
22-
- **sqlalchemy** (supports version 1 & 2; can use any underlying database interface)
23-
- asynchronous
24-
- synchronous
15+
- **asyncpg**
16+
- asynchronous
17+
- **psycopg2**
18+
- synchronous
19+
- **psycopg3**
20+
- asynchronous
21+
- synchronous
22+
- **sqlalchemy** (supports version 1 & 2; can use any underlying database interface)
23+
- asynchronous
24+
- synchronous
2525

2626
### Why would I use this?
2727

28-
- PostgreSQL table locks aren't sufficient for your use-case
29-
- PostgreSQL row locks don't work on `INSERT`
30-
- You want to prevent race conditions between `INSERT` and `UPDATE` on the same primary key
31-
- None of the aforementioned details fit your use-case, but you have PostgreSQL installed and need to prevent race conditions in a distributed system
28+
- PostgreSQL table locks aren't sufficient for your use-case
29+
- PostgreSQL row locks don't work on `INSERT`
30+
- You want to prevent race conditions between `INSERT` and `UPDATE` on the same primary key
31+
- None of the aforementioned details fit your use-case, but you have PostgreSQL installed and need to prevent race conditions in a distributed system
3232

3333
### Default operation
3434

@@ -175,24 +175,26 @@ lock = Lock(conn, "shared-identifier", rollback_on_error=False)
175175

176176
### Changelog
177177

178-
- **0.1.9**
179-
- Fix: release_async() bug for sqlalchemy connections
180-
- **0.1.8**
181-
- Add logger() function
182-
- Use "postgresql_lock" logger name
183-
- **0.1.7**
184-
- Add logging statements
185-
- **0.1.6**
186-
- Use int.from_bytes() to convert lock key into integer
187-
- Fix: psycopg3 close() not being awaited bug
188-
- **0.1.5**
189-
- Rename package from postgres-lock to postgresql-lock
190-
- **0.1.4**
191-
- Add py.typed for mypy
192-
- **0.1.3**
193-
- Key can be any object
194-
- **0.1.2**
195-
- Add Lock.rollback_on_error (default true)
196-
- Add Lock.handle_error() & Lock.handle_error_async()
197-
- **0.1.1**
198-
- Key can be str or int
178+
- **0.2.1**
179+
- Moved public Lock fields to properties
180+
- **0.1.9**
181+
- Fix: release_async() bug for sqlalchemy connections
182+
- **0.1.8**
183+
- Add logger() function
184+
- Use "postgresql_lock" logger name
185+
- **0.1.7**
186+
- Add logging statements
187+
- **0.1.6**
188+
- Use int.from_bytes() to convert lock key into integer
189+
- Fix: psycopg3 close() not being awaited bug
190+
- **0.1.5**
191+
- Rename package from postgres-lock to postgresql-lock
192+
- **0.1.4**
193+
- Add py.typed for mypy
194+
- **0.1.3**
195+
- Key can be any object
196+
- **0.1.2**
197+
- Add Lock.rollback_on_error (default true)
198+
- Add Lock.handle_error() & Lock.handle_error_async()
199+
- **0.1.1**
200+
- Key can be str or int

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "postgresql-lock"
3-
version = "0.1.9"
3+
version = "0.2.1"
44
description = "Lock mechanism implemented with PostgreSQL advisory locks."
55
license = "BSD-3-Clause"
66
authors = ["Sean Kerr <sean@code-box.org>"]

0 commit comments

Comments
 (0)