Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed May 26, 2024
1 parent 98cd300 commit 606bc4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/helpers/column-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 606bc4f

Please sign in to comment.