-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2883819
commit f4ab4e6
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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`}, | ||
|
@@ -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`}, | ||
|
@@ -177,7 +177,7 @@ import {usersOptions} from './database'; | |
|
||
export async function updateFavoriteColors() { | ||
return await bulkUpdate({ | ||
...options, | ||
...usersOptions, | ||
whereColumnNames: [`email`], | ||
setColumnNames: [`favorite_color`], | ||
updates: [ | ||
|
@@ -194,7 +194,7 @@ const {usersOptions} = require('./database'); | |
|
||
async function updateFavoriteColors() { | ||
return await bulkUpdate({ | ||
...options, | ||
...usersOptions, | ||
whereColumnNames: [`email`], | ||
setColumnNames: [`favorite_color`], | ||
updates: [ | ||
|
@@ -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`}, | ||
|
@@ -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`}, | ||
|