Skip to content

Commit

Permalink
Merge pull request #7 from Muhammad-Magdi/fix-dbdev-issue
Browse files Browse the repository at this point in the history
📚 update README with a comment about bypassing extention creation
  • Loading branch information
Muhammad-Magdi authored Sep 21, 2024
2 parents de1455b + 8272b8e commit 8b041fe
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@ Then:
import { Pgmq } from 'pgmq-js';

console.log('Connecting to Postgres...');
const pgmq = await Pgmq.new({
host: 'localhost',
database: 'postgres',
password: 'password',
port: 5432,
user: 'postgres',
ssl: false,
}).catch((err) => {
const pgmq = await Pgmq.new(
{
host: 'localhost',
database: 'postgres',
password: 'password',
port: 5432,
user: 'postgres',
ssl: false,
},
// { skipExtensionCreation: true }, Set this if you want to bypass extension creation (e.g. dbdev users).
).catch((err) => {
console.error('Failed to connect to Postgres', err);
});

Expand Down

0 comments on commit 8b041fe

Please sign in to comment.