-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add numAffectedRows to InsertResult. * update numUpdatedOrDeletedRows ts doc. * update InsertQueryBuilder's execute(). * fix MysqlDriver not passing affected rows in result. * make PostgresDriver pass row count in result of insert command. * rename numAffectedRows to numInsertedOrUpdatedRows to align with others. * add some result expectations @ node insert test. * more node test stuff. * add ts doc paragraph for numInsertedOrUpdatedRows. * remove silly length assertion. * add numUpdatedOrDeletedRows deprecation warning @ QueryExecutorBase. * add numAffectedRows to QueryResult. * add numAffectedRows (/w backwards compat) handling at builders. * add numAffectedRows (/w backwards compat) handling @ dialect drivers. * add logOnce helper fn. * add logOnce unit test. * nullish coalescing assignment not supported in node.js 14.
- Loading branch information
1 parent
458b3c0
commit 606b001
Showing
15 changed files
with
301 additions
and
43 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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const LOGGED_MESSAGES: Set<string> = new Set() | ||
|
||
/** | ||
* Use for system-level logging, such as deprecation messages. | ||
* Logs a message and ensures it won't be logged again. | ||
*/ | ||
export function logOnce(message: string): void { | ||
if (LOGGED_MESSAGES.has(message)) { | ||
return | ||
} | ||
|
||
LOGGED_MESSAGES.add(message) | ||
console.log(message) | ||
} |
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
Oops, something went wrong.