sqerge 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,8 +59,6 @@ A forward only PostgreSQL migration tool. Uses [Postgres.js](https://github.com/
|
|
|
59
59
|
|
|
60
60
|
Command:
|
|
61
61
|
|
|
62
|
-
**Note:** Use [environment variables](https://www.postgresql.org/docs/current/libpq-envars.html) for your database connection. Supported environment variables are at the discretion of [Postgres.js](https://github.com/porsager/postgres).
|
|
63
|
-
|
|
64
62
|
```sh
|
|
65
63
|
PGHOST=localhost PGPORT=5438 PGUSER=jonathan PGPASSWORD=iliketurtles PGDATABASE=dev npx sqerge ./foo
|
|
66
64
|
```
|
|
@@ -73,3 +71,11 @@ A forward only PostgreSQL migration tool. Uses [Postgres.js](https://github.com/
|
|
|
73
71
|
[sqerge] file 2 (2-biz.sql): executed
|
|
74
72
|
[sqerge] file 3 (3-baz.js): executed
|
|
75
73
|
```
|
|
74
|
+
|
|
75
|
+
## Environment Variables
|
|
76
|
+
|
|
77
|
+
- Use **Postgres.js** [environment variables](https://github.com/porsager/postgres#environmental-variables) for your database **connection**.
|
|
78
|
+
|
|
79
|
+
- **ROLE** (optional)
|
|
80
|
+
|
|
81
|
+
Execute migration with the specified database role. This is helpful for when your `LOGIN` role has a `NOINHERIT` membership to another role containting privileges required for your migration. If ROLE is provided, sqerge will execute `SET ROLE` for the session and then execute your migration files.
|