Skip to content

Commit a86aef6

Browse files
committed
readme
1 parent e64dc8a commit a86aef6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@ The wheel can be installed with pip:
2222
$ pip install postgresql-wheel
2323
```
2424

25+
Postgres binaries in the package can be found in the directory pointed
26+
to by the `postgresql.pg_bin` global variable. `initdb` and `pg_ctl`
27+
functions are provided for convenience:
28+
2529
```py3
2630
>>> from postgresql import initdb, pg_ctl
2731
>>> initdb('-D testdatabase')
2832
>>> pg_ctl('-D testdatabase -o "-p 5678" -l testdatabase.log start')
2933

34+
>>> import psycopg2
3035
>>> c = psycopg2.connect("postgres://localhost:5678/postgres") # connect with local client
3136
>>> with c.cursor() as q:
3237
>>> q.execute("select version()")

0 commit comments

Comments
 (0)