Skip to content

Commit

Permalink
docs: function options (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroandrade authored Jan 12, 2024
1 parent 2883819 commit f4ab4e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/pg-bulk.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ import {usersOptions} from './database';

export async function getUsers() {
return await bulkSelect({
...options,
...usersOptions,
whereColumnNames: [`email`, `favorite_color`],
whereConditions: [
{email: `[email protected]`, favorite_color: `red`},
Expand All @@ -132,7 +132,7 @@ const {usersOptions} = require('./database');

async function getUsers() {
return await bulkSelect({
...options,
...usersOptions,
whereColumnNames: [`email`, `favorite_color`],
whereConditions: [
{email: `[email protected]`, favorite_color: `red`},
Expand Down Expand Up @@ -177,7 +177,7 @@ import {usersOptions} from './database';

export async function updateFavoriteColors() {
return await bulkUpdate({
...options,
...usersOptions,
whereColumnNames: [`email`],
setColumnNames: [`favorite_color`],
updates: [
Expand All @@ -194,7 +194,7 @@ const {usersOptions} = require('./database');

async function updateFavoriteColors() {
return await bulkUpdate({
...options,
...usersOptions,
whereColumnNames: [`email`],
setColumnNames: [`favorite_color`],
updates: [
Expand Down Expand Up @@ -240,7 +240,7 @@ import {usersOptions} from './database';

export async function deleteUsers() {
return await bulkDelete({
...options,
...usersOptions,
whereColumnNames: [`email`, `favorite_color`],
whereConditions: [
{email: `[email protected]`, favorite_color: `red`},
Expand All @@ -256,7 +256,7 @@ const {usersOptions} = require('./database');

async function deleteUsers() {
return await bulkDelete({
...options,
...usersOptions,
whereColumnNames: [`email`, `favorite_color`],
whereConditions: [
{email: `[email protected]`, favorite_color: `red`},
Expand Down

0 comments on commit f4ab4e6

Please sign in to comment.