Skip to content

Commit fc9ca8e

Browse files
committed
feat: add a usage section
1 parent 29c2329 commit fc9ca8e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,43 @@ The following functions are provided by the Postgres extension.
169169
| `seconds_at` | `BIGINT` | Returns the total seconds since the UNIX epoch. |
170170
| `millis_at` | `BIGINT` | Returns the total milliseconds since the UNIX epoch. |
171171
| `micros_at` | `BIGINT` | Returns the total microseconds since the UNIX epoch. |
172+
173+
## Usage
174+
175+
Run a PostgreSQL database that has `pg-when` already installed.
176+
177+
```bash
178+
docker run --network=host frectonz/pg-when
179+
```
180+
181+
`pg-when` is also distributed with other PostgreSQL versions.
182+
183+
### PostgreSQL 13
184+
185+
```bash
186+
docker run --network=host frectonz/pg-when:pg13
187+
```
188+
189+
### PostgreSQL 14
190+
191+
```bash
192+
docker run --network=host frectonz/pg-when:pg14
193+
```
194+
195+
### PostgreSQL 15
196+
197+
```bash
198+
docker run --network=host frectonz/pg-when:pg15
199+
```
200+
201+
### PostgreSQL 16
202+
203+
```bash
204+
docker run --network=host frectonz/pg-when:pg16
205+
```
206+
207+
### PostgreSQL 17
208+
209+
```bash
210+
docker run --network=host frectonz/pg-when:pg17
211+
```

0 commit comments

Comments
 (0)