You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@
5
5
Install with `pip` from pypi.org:
6
6
7
7
```bash
8
-
pip install pgmq-py
8
+
pip install pgmq
9
9
```
10
10
11
11
To use the async version, install with the optional dependencies:
12
12
13
13
```bash
14
-
pip install pgmq-py[async]
14
+
pip install pgmq[async]
15
15
```
16
16
17
17
Dependencies:
@@ -41,7 +41,7 @@ export PG_DATABASE=test_db
41
41
Initialize a connection to Postgres using environment variables:
42
42
43
43
```python
44
-
frompgmq_pyimport PGMQueue, Message
44
+
frompgmqimport PGMQueue, Message
45
45
46
46
queue = PGMQueue()
47
47
```
@@ -51,7 +51,7 @@ queue = PGMQueue()
51
51
Initialization for the async version requires an explicit call of the initializer:
52
52
53
53
```python
54
-
frompgmq_py.async_queue import PGMQueue
54
+
frompgmq.async_queue import PGMQueue
55
55
56
56
asyncdefmain():
57
57
queue = PGMQueue()
@@ -63,7 +63,7 @@ Then, the interface is exactly the same as the sync version.
63
63
### Initialize a connection to Postgres without environment variables
64
64
65
65
```python
66
-
frompgmq_pyimport PGMQueue, Message
66
+
frompgmqimport PGMQueue, Message
67
67
68
68
queue = PGMQueue(
69
69
host="0.0.0.0",
@@ -260,13 +260,13 @@ queue = PGMQueue(
260
260
261
261
# Using Transactions
262
262
263
-
To perform multiple operations within a single transaction, use the `@transaction` decorator from the `pgmq_py.decorators` module.
263
+
To perform multiple operations within a single transaction, use the `@transaction` decorator from the `pgmq.decorators` module.
264
264
This ensures that all operations within the function are executed within the same transaction and are either committed together or rolled back if an error occurs.
0 commit comments