From 8272b8ed667119e1c5d216e7e0622961b7c676c6 Mon Sep 17 00:00:00 2001 From: Muhammad Magdi Date: Sat, 21 Sep 2024 03:34:21 +0300 Subject: [PATCH] :books: update README with a comment about bypassing extention creation --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e8aaa22..b4df7ef 100644 --- a/README.md +++ b/README.md @@ -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); });