Skip to content

Commit

Permalink
docs: fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ozum committed Apr 13, 2023
1 parent 238f9c4 commit 046d3e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
sudo -u postgres psql --command="CREATE USER \"user\" PASSWORD 'password' SUPERUSER CREATEDB REPLICATION" --command="\du"
- name: Begin CI...
uses: actions/checkout@v2
- name: Use Node 14
uses: actions/setup-node@v2
- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 18.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import pgStructure from "pg-structure";

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

const table = db.get("contact");
const columnNames = table.columns.map((c) => c.name);
Expand Down
2 changes: 1 addition & 1 deletion README.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import pgStructure from "pg-structure";

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

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

0 comments on commit 046d3e6

Please sign in to comment.