Skip to content

Conversation

@w3nl
Copy link
Owner

@w3nl w3nl commented Apr 1, 2025

Description of change

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

alumni and others added 7 commits March 29, 2025 22:35
* build: setup SAP HANA tests

* test: fix/skip failing SAP HANA tests

* fix(sap): rename schema
* fix: export * from `subscriber/event/QueryEvent`

Otherwise it's impossible to create a listener/subscriper that is using
the Before/After query event types

* docs: clarify that QueryEvent execution time result is in ms
resolve issue with bulk insert of NULL values for non VARCHAR2 types in Oracle.
* fix: sql escape issues identified by CodeQL

* fix: random generation in sample code
@w3nl w3nl requested a review from Copilot April 1, 2025 13:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request synchronizes driver implementations, configuration files, and documentation with upstream changes. Key updates include:

  • Renaming and modifying methods in SAP and Cockroach database drivers (e.g. getVersion → getDatabaseAndVersion).
  • Replacing RegExp-based string replacements with replaceAll for enum values and query strings.
  • Updating docker-compose, developer documentation, and GitHub workflows to reflect current configuration and testing standards.

Reviewed Changes

Copilot reviewed 53 out of 58 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/driver/sap/SapQueryRunner.ts Renamed the method to return both database and version info; adjusted query.
src/driver/sap/SapDriver.ts Updated driver to use the new getDatabaseAndVersion method.
src/driver/postgres/PostgresQueryRunner.ts Replaced RegExp replace with replaceAll for cleaner code.
src/driver/postgres/PostgresDriver.ts Switched from substr to slice for string trimming and simplified regex.
src/driver/mongodb/MongoDriver.ts Refactored option extraction and driver info assignment in connection options.
src/driver/mongodb/MongoConnectionOptions.ts Updated and rearranged MongoDB connection options and documentation.
src/driver/cockroachdb/CockroachQueryRunner.ts Applied similar replaceAll improvements to enum handling.
src/driver/cockroachdb/CockroachDriver.ts Adjusted string slice usage for enum conversion consistency.
src/commands/MigrationGenerateCommand.ts Improved query string escaping using replaceAll.
sample/sample9-entity-listeners/entity/Post.ts Updated entity listener code to utilize crypto.randomInt for UID generation.
docker-compose.yml Revised SAP HANA configuration and healthchecks.
DEVELOPER.md Updated instructions to reference the new sample file for ormconfig.
.github/workflows/*.yml Renamed and restructured workflow configuration for better clarity.
Files not reviewed (5)
  • .github/workflows/database-compose-tests.yml: Language not supported
  • .github/workflows/test/oracle.docker-compose.yml: Language not supported
  • .github/workflows/test/oracle.ormconfig.json: Language not supported
  • ormconfig.sample.json: Language not supported
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

src/driver/mongodb/MongoConnectionOptions.ts:121

  • Changing the type of 'keepAlive' from a number to a boolean may affect consumers expecting a numeric timeout; please confirm that this breaking change is intentional and update related documentation if necessary.
readonly keepAlive?: boolean

@w3nl w3nl merged commit d6c0b8d into w3nl:master Apr 1, 2025
41 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 14197127864

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 15 of 16 (93.75%) changed or added relevant lines in 7 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+4.3%) to 76.389%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/driver/mongodb/MongoDriver.ts 6 7 85.71%
Totals Coverage Status
Change from base Build 14125900539: 4.3%
Covered Lines: 18693
Relevant Lines: 23765

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants