Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ali-sdk/ali-rds
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: node-modules/rds
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 16 commits
  • 24 files changed
  • 8 contributors

Commits on Jan 30, 2024

  1. feat: support mysql2 (#1)

    - support mysql2
    - rename to myrds
    
    Co-authored-by: raoha.rh <raohai.rh@antgroup.com>
    RaoHai and RaoHai authored Jan 30, 2024
    Copy the full SHA
    eb9f391 View commit details
  2. Release 1.0.0

    [skip ci]
    
    ## 1.0.0 (2024-01-30)
    
    ### ⚠ BREAKING CHANGES
    
    * In `Promise.all` case, Parallel beginTransactionScope will create isolated transactions.
    * drop Node.js < 16 support
    
    ### Features
    
    * add *beginTransactionScope(scope) ([0013a63](node-modules@0013a63))
    * add count(table, where) ([6286c46](node-modules@6286c46))
    * add get(), list(), insert(), update() ([9cae1cb](node-modules@9cae1cb))
    * add options.needFields, default is true ([18e0dea](node-modules@18e0dea))
    * add queryOne api ([#9](node-modules#9)) ([19fc1bb](node-modules@19fc1bb))
    * add Transaction ([cfdcf26](node-modules@cfdcf26))
    * add unlock/lock tables ([#97](https://github.com/node-modules/myrds/issues/97)) ([4dc3452](node-modules@4dc3452))
    * add unlock/lock tables ([#97](https://github.com/node-modules/myrds/issues/97)) ([0a61be6](node-modules@0a61be6))
    * dynamic retrieval of database connection configuration ([#110](https://github.com/node-modules/myrds/issues/110)) ([f437efb](node-modules@f437efb))
    * export connection and query diagnostics_channel ([#111](https://github.com/node-modules/myrds/issues/111)) ([64aa75d](node-modules@64aa75d))
    * export sqlstring method ([#79](https://github.com/node-modules/myrds/issues/79)) ([2e99ab8](node-modules@2e99ab8))
    * impl with typescript ([#103](https://github.com/node-modules/myrds/issues/103)) ([1cf7814](node-modules@1cf7814))
    * promiseify ([#20](https://github.com/node-modules/myrds/issues/20)) ([e4aed30](node-modules@e4aed30))
    * stats 增加使用中的连接数 ([#115](https://github.com/node-modules/myrds/issues/115)) ([2b152a1](node-modules@2b152a1))
    * support custom query lifecricle ([#104](https://github.com/node-modules/myrds/issues/104)) ([5941c69](node-modules@5941c69))
    * support doomed transaction scope on test cases ([#58](https://github.com/node-modules/myrds/issues/58)) ([b227bc1](node-modules@b227bc1))
    * support end() ([b3eab93](node-modules@b3eab93))
    * support insert multi rows ([abb4804](node-modules@abb4804))
    * support mysql2 ([#1](node-modules#1)) ([eb9f391](node-modules@eb9f391))
    * support query(sql, object) ([#12](https://github.com/node-modules/myrds/issues/12)) ([a55e82f](node-modules@a55e82f))
    * support transaction on one request ctx ([#7](node-modules#7)) ([3bd4e44](node-modules@3bd4e44))
    * update multiple rows ([#55](https://github.com/node-modules/myrds/issues/55)) ([859d818](node-modules@859d818))
    * use AsyncLocalStorage to refactor transaction, to make it more safe ([#108](https://github.com/node-modules/myrds/issues/108)) ([ae327fa](node-modules@ae327fa))
    * where condition support NULL value ([#60](https://github.com/node-modules/myrds/issues/60)) ([0d4d4ab](node-modules@0d4d4ab))
    * wrap generator function to promise ([#19](https://github.com/node-modules/myrds/issues/19)) ([fe1b4a3](node-modules@fe1b4a3))
    
    ### Bug Fixes
    
    * `where` with empty object ([#15](https://github.com/node-modules/myrds/issues/15)) ([db0b90e](node-modules@db0b90e))
    * add default value now() of `gmt_modified` and `gmt_create` ([#56](https://github.com/node-modules/myrds/issues/56)) ([db6d596](node-modules@db6d596))
    * don't export protected methods ([#106](https://github.com/node-modules/myrds/issues/106)) ([b2757df](node-modules@b2757df))
    * don't redefined sqlstring.escape ([#39](https://github.com/node-modules/myrds/issues/39)) ([5ca4489](node-modules@5ca4489))
    * export pool getter from rds client ([#102](https://github.com/node-modules/myrds/issues/102)) ([4048807](node-modules@4048807))
    * handle concurrent transaction ([#85](https://github.com/node-modules/myrds/issues/85)) ([d983478](node-modules@d983478))
    * move sql to error stack ([#8](node-modules#8)) ([54349cd](node-modules@54349cd))
    * mysql type not found ([#109](https://github.com/node-modules/myrds/issues/109)) ([6a9bc45](node-modules@6a9bc45))
    * query parameters are not allowed to be included in where ([#67](https://github.com/node-modules/myrds/issues/67)) ([52147de](node-modules@52147de))
    * should export conn property ([#101](https://github.com/node-modules/myrds/issues/101)) ([37afa42](node-modules@37afa42))
    * support multi lifecricle hooks ([#105](https://github.com/node-modules/myrds/issues/105)) ([53b0a70](node-modules@53b0a70))
    * use master branch ([758877d](node-modules@758877d))
    semantic-release-bot committed Jan 30, 2024
    Copy the full SHA
    0f8229f View commit details
  3. Copy the full SHA
    73941d1 View commit details
  4. chore: update contributors

    fengmk2 committed Jan 30, 2024
    Copy the full SHA
    0e90e9e View commit details

Commits on Mar 26, 2024

  1. fix: exports types (#3)

    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    - **Refactor**
    	- Improved module exports for better usability and access to types.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    killagu authored Mar 26, 2024
    Copy the full SHA
    66882d6 View commit details
  2. Release 1.0.1

    [skip ci]
    
    ## [1.0.1](node-modules/rds@v1.0.0...v1.0.1) (2024-03-26)
    
    ### Bug Fixes
    
    * exports types ([#3](node-modules#3)) ([66882d6](node-modules@66882d6))
    semantic-release-bot committed Mar 26, 2024
    Copy the full SHA
    cd5a759 View commit details

Commits on Apr 18, 2024

  1. feat: auto use transaction in db.query (#5)

    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    ## Summary by CodeRabbit
    
    - **New Features**
    - Enhanced database query flexibility by allowing the use of
    transactions or specific connections.
    
    - **Tests**
    - Implemented new tests to verify database queries within transactions
    and with specified connections.
    
    - **Chores**
    	- Updated `.gitignore` to exclude IDE-specific settings files.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    killagu authored Apr 18, 2024
    Copy the full SHA
    ba7cd37 View commit details
  2. Release 1.1.0

    [skip ci]
    
    ## [1.1.0](node-modules/rds@v1.0.1...v1.1.0) (2024-04-18)
    
    ### Features
    
    * auto use transaction in db.query ([#5](node-modules#5)) ([ba7cd37](node-modules@ba7cd37))
    semantic-release-bot committed Apr 18, 2024
    Copy the full SHA
    194062e View commit details

Commits on Aug 12, 2024

  1. feat: impl PoolWaitTimeoutError (#7)

    Throw error when get connection wait time great than poolWaitTimeout.
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    ## Summary by CodeRabbit
    
    
    - **New Features**
    - Enhanced connection management in the RDSClient with configurable
    timeout options.
    - Introduced a custom error handling mechanism for connection timeout
    scenarios.
    - New property added to RDSClientOptions for specifying pool wait
    timeout.
    	- Unique identifier for RDSTransaction instances to improve tracking.
    
    - **Bug Fixes**
    - Improved error handling for connection timeouts, providing clearer
    feedback to users.
    
    - **Tests**
    - Added a suite of tests to validate connection pooling behavior under
    timeout conditions.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    killagu authored Aug 12, 2024
    Copy the full SHA
    f42012d View commit details
  2. Release 1.2.0

    [skip ci]
    
    ## [1.2.0](node-modules/rds@v1.1.0...v1.2.0) (2024-08-12)
    
    ### Features
    
    * impl PoolWaitTimeoutError ([#7](node-modules#7)) ([f42012d](node-modules@f42012d))
    semantic-release-bot committed Aug 12, 2024
    Copy the full SHA
    b359064 View commit details

Commits on Sep 6, 2024

  1. fix: fix mysql2 invalid configuration option poolWaitTimeout (#8)

    Unpicked `options` will become `mysqlOptions` and pass to mysql2, mean
    while mysql2 will console.error a message, causing egg fail to start.
    
    
    ![image](https://github.com/user-attachments/assets/19bb92fa-1c98-4e7b-8195-5cf7ff303e1d)
    
    ![image](https://github.com/user-attachments/assets/88108c2b-ef9e-4c34-b74b-93cb609101b3)
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    - **New Features**
    - Enhanced configurability of the RDSClient by adding a
    `poolWaitTimeout` option for improved connection management.
    
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    ShadyZOZ authored Sep 6, 2024
    Copy the full SHA
    7293c2e View commit details
  2. Release 1.2.1

    [skip ci]
    
    ## [1.2.1](node-modules/rds@v1.2.0...v1.2.1) (2024-09-06)
    
    ### Bug Fixes
    
    * fix mysql2 invalid configuration option poolWaitTimeout ([#8](node-modules#8)) ([7293c2e](node-modules@7293c2e))
    semantic-release-bot committed Sep 6, 2024
    Copy the full SHA
    a40233b View commit details

Commits on Mar 9, 2025

  1. fix: add missing sqlstring deps (#10)

    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    - **Documentation**
    - Introduced a new “Local Development” section with clear instructions
    for starting a MySQL service, running tests, and stopping the service.
    	- Updated the contributors display to use a dynamic image.
      
    - **New Features**
    - Added a streamlined Docker Compose setup for a MySQL service using the
    latest version.
      
    - **Chores**
    - Enhanced automation workflows to support additional Node.js and MySQL
    versions.
    - Adjusted dependency management and configuration handling to improve
    overall reliability.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    fengmk2 authored Mar 9, 2025
    Copy the full SHA
    7339921 View commit details
  2. Release 1.2.2

    [skip ci]
    
    ## [1.2.2](node-modules/rds@v1.2.1...v1.2.2) (2025-03-09)
    
    ### Bug Fixes
    
    * add missing sqlstring deps ([#10](node-modules#10)) ([7339921](node-modules@7339921))
    semantic-release-bot committed Mar 9, 2025
    Copy the full SHA
    db72b8e View commit details
  3. feat: add custom logging (#122) (#11)

    pick from #122
    
    closes node-modules#9
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    - **New Features**
    - Introduced configurable logging capabilities for database operations.
    Users can now enable logging to capture SQL queries along with execution
    details and error information.
    - **Tests**
    - Expanded test coverage validates the new logging functionality,
    ensuring queries are accurately captured and formatted during execution.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    
    Co-authored-by: Dai Wenzhuo <rockdai321@gmail.com>
    fengmk2 and rockdai authored Mar 9, 2025
    Copy the full SHA
    4b97cb0 View commit details
  4. Release 1.3.0

    [skip ci]
    
    ## [1.3.0](node-modules/rds@v1.2.2...v1.3.0) (2025-03-09)
    
    ### Features
    
    * add custom logging ([#122](https://github.com/node-modules/rds/issues/122)) ([#11](node-modules#11)) ([4b97cb0](node-modules@4b97cb0))
    semantic-release-bot committed Mar 9, 2025
    Copy the full SHA
    eaf77dc View commit details
76 changes: 0 additions & 76 deletions .github/workflows/codeql.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -2,15 +2,17 @@ name: CI

on:
push:
branches: [ master, 4.x ]

branches: [ master ]
pull_request:
branches: [ master, 4.x ]
branches: [ master ]

jobs:
Job:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test-mysql.yml@master
with:
os: 'ubuntu-latest'
version: '16.17.0, 16, 18, 20'
version: '16, 18, 20, 22'
mysql_version: '5, 8, 9'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -11,5 +11,3 @@ jobs:
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -15,3 +15,5 @@ npm-debug.log
coverage
lib
.eslintcache
package-lock.json
.idea
Loading