Skip to content

Commit 046d3e6

Browse files
committed
docs: fix readme
1 parent 238f9c4 commit 046d3e6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
sudo -u postgres psql --command="CREATE USER \"user\" PASSWORD 'password' SUPERUSER CREATEDB REPLICATION" --command="\du"
2727
- name: Begin CI...
2828
uses: actions/checkout@v2
29-
- name: Use Node 14
30-
uses: actions/setup-node@v2
29+
- name: Use Node 18
30+
uses: actions/setup-node@v3
3131
with:
32-
node-version: 14.x
32+
node-version: 18.x
3333
- name: Get yarn cache directory path
3434
id: yarn-cache-dir-path
3535
run: echo "::set-output name=dir::$(yarn cache dir)"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import pgStructure from "pg-structure";
2727

2828
async function demo() {
2929
// Prefer to use environment variables or ".env" file for the credentials. See the ".env.example" file.
30-
const db = await pgStructure({ database: "db", user: "u", password: "pass" }, { includeSchemas: ["public"] });
30+
const db = await pgStructure({ host: "host", database: "db", user: "u", password: "pass" }, { includeSchemas: ["public"] });
3131

3232
const table = db.get("contact");
3333
const columnNames = table.columns.map((c) => c.name);

README.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import pgStructure from "pg-structure";
1515

1616
async function demo() {
1717
// Prefer to use environment variables or ".env" file for the credentials. See the ".env.example" file.
18-
const db = await pgStructure({ database: "db", user: "u", password: "pass" }, { includeSchemas: ["public"] });
18+
const db = await pgStructure({ host: "host", database: "db", user: "u", password: "pass" }, { includeSchemas: ["public"] });
1919

2020
const table = db.get("contact");
2121
const columnNames = table.columns.map(c => c.name);

0 commit comments

Comments
 (0)