From 606bc4f212408f52ab07172cdeff95e0b4e9459a Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov <vitaly-t@users.noreply.github.com> Date: Sun, 26 May 2024 13:57:25 +0100 Subject: [PATCH] docs --- lib/helpers/column-set.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/helpers/column-set.js b/lib/helpers/column-set.js index da1516b3..8810c9c0 100644 --- a/lib/helpers/column-set.js +++ b/lib/helpers/column-set.js @@ -387,14 +387,14 @@ ColumnSet.prototype.assign = function (options) { * * @example * - * const cs = new pgp.helpers.ColumnSet(['id', 'city', 'street']); + * const cs = new ColumnSet(['id', 'city', 'street']); * * cs.assignColumns({from: 'EXCLUDED', skip: 'id'}) * //=> "city"=EXCLUDED."city","street"=EXCLUDED."street" * * @example * - * const cs = new pgp.helpers.ColumnSet(['?id', 'city', 'street']); + * const cs = new ColumnSet(['?id', 'city', 'street']); * * cs.assignColumns({from: 'source', to: 'target', skip: c => c.cnd}) * //=> target."city"=source."city",target."street"=source."street" @@ -496,8 +496,9 @@ ColumnSet.prototype.extend = function (columns) { * @example * * const pgp = require('pg-promise')(); + * const {ColumnSet} = pgp.helpers; * - * const cs = new pgp.helpers.ColumnSet(['?one', 'two:json'], {table: 'my-table'}); + * const cs = new ColumnSet(['?one', 'two:json'], {table: 'my-table'}); * console.log(cs); * //=> * // ColumnSet {