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
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,42 +14,38 @@ To install `testgres`, run:
14
14
pip install testgres
15
15
```
16
16
17
-
We encourage you to use `virtualenv` for your testing environment. Both Python 2.7 and 3.5 are supported.
17
+
We encourage you to use `virtualenv` for your testing environment. Both Python 2.7 and 3.3+ are supported.
18
18
19
19
20
20
## Usage
21
21
22
-
> Note: by default testgres runs `initdb`, `pg_ctl`, `psql` provided by `$PATH`. To specify a custom postgres installation, set the environment variable `$PG_CONFIG` pointing to the `pg_config` executable: `export PG_CONFIG=/path/to/pg_config`.
22
+
> Note: by default testgres runs `initdb`, `pg_ctl`, `psql` provided by `PATH`. To specify a custom postgres installation, set the environment variable `PG_CONFIG` pointing to the `pg_config` executable: `export PG_CONFIG=/path/to/pg_config`.
23
23
24
24
Here is an example of what you can do with `testgres`:
withtestgres.get_new_node('master', '/path/to/DB') as node:
50
46
```
51
47
52
-
`master` is a node's name, not the DB's name. The name matters if you're testing something like replication. Function `get_new_node()` only creates directory structure in specified directory (or somewhere in '/tmp' if we did not specify base directory) for cluster. After that, we have to initialize the PostgreSQL cluster:
48
+
where `master` is a node's name, not a DB's name. Name matters if you're testing something like replication. Function `get_new_node()` only creates directory structure in specified directory (or somewhere in '/tmp' if we did not specify base directory) for cluster. After that, we have to initialize the PostgreSQL cluster:
0 commit comments