@cubejs-backend/mysql-aurora-serverless-driver 1.7.36 → 1.7.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.oxlintrc.json +12 -0
- package/CHANGELOG.md +10 -0
- package/README.md +5 -5
- package/driver/AuroraServerlessMySqlDriver.js +3 -0
- package/package.json +7 -11
package/.oxlintrc.json
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.7.38](https://github.com/cube-js/cube/compare/v1.7.37...v1.7.38) (2026-09-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @cubejs-backend/mysql-aurora-serverless-driver
|
|
9
|
+
|
|
10
|
+
## [1.7.37](https://github.com/cube-js/cube/compare/v1.7.35...v1.7.37) (2026-09-10)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- Support named ESM exports across all drivers ([#11838](https://github.com/cube-js/cube/issues/11838)) ([1699910](https://github.com/cube-js/cube/commit/1699910ef05c808ba9e114fcb4cd02432bd3767e))
|
|
15
|
+
|
|
6
16
|
## [1.7.36](https://github.com/cube-js/cube/compare/v1.7.35...v1.7.36) (2026-09-09)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @cubejs-backend/mysql-aurora-serverless-driver
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<p align="center"><a href="https://cube.dev"><img src="https://i.imgur.com/zYHXm4o.png" alt="Cube
|
|
1
|
+
<p align="center"><a href="https://cube.dev"><img src="https://i.imgur.com/zYHXm4o.png" alt="Cube" width="300px"></a></p>
|
|
2
2
|
|
|
3
3
|
[Website](https://cube.dev) • [Docs](https://docs.cube.dev) • [Blog](https://cube.dev/blog) • [Slack](https://slack.cube.dev) • [Twitter](https://twitter.com/the_cube_dev)
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/js/%40cubejs-backend%2Fserver)
|
|
6
6
|
[](https://github.com/cube-js/cube.js/actions?query=workflow%3ABuild+branch%3Amaster)
|
|
7
7
|
|
|
8
|
-
# Cube
|
|
8
|
+
# Cube MySql Aurora Serverless Data Api Driver
|
|
9
9
|
|
|
10
10
|
Pure Javascript MySql Aurora Serverless Data Api driver.
|
|
11
11
|
|
|
@@ -23,10 +23,10 @@ Uses the `mysql` and [local-data-api](https://hub.docker.com/r/koxudaxi/local-da
|
|
|
23
23
|
|
|
24
24
|
## Support
|
|
25
25
|
|
|
26
|
-
This driver has been contributed by Cube
|
|
26
|
+
This driver has been contributed by Cube community member [Kenneth Winner](https://github.com/kcwinner) . This package is **community supported** and should be used at your own risk.
|
|
27
27
|
|
|
28
|
-
While the Cube Dev team is happy to review and accept future community contributions, we don't have active plans for further development. This includes bug fixes unless they affect different parts of Cube.
|
|
28
|
+
While the Cube Dev team is happy to review and accept future community contributions, we don't have active plans for further development. This includes bug fixes unless they affect different parts of Cube. **We're looking for maintainers for this package.** If you'd like to become a maintainer, please contact us in Cube Slack.
|
|
29
29
|
|
|
30
30
|
### License
|
|
31
31
|
|
|
32
|
-
Cube
|
|
32
|
+
Cube MySql Serverless Aurora Data Api Driver is [Apache 2.0 licensed](./LICENSE).
|
|
@@ -166,8 +166,10 @@ class AuroraServerlessMySqlDriver extends BaseDriver {
|
|
|
166
166
|
throw new Error(`${this.constructor} driver supports only rows upload`);
|
|
167
167
|
}
|
|
168
168
|
await this.createTable(table, columns);
|
|
169
|
+
|
|
169
170
|
try {
|
|
170
171
|
const batchSize = 1000; // TODO make dynamic?
|
|
172
|
+
|
|
171
173
|
for (let j = 0; j < Math.ceil(tableData.rows.length / batchSize); j++) {
|
|
172
174
|
const currentBatchSize = Math.min(tableData.rows.length - j * batchSize, batchSize);
|
|
173
175
|
const indexArray = Array.from({ length: currentBatchSize }, (v, i) => i);
|
|
@@ -197,3 +199,4 @@ class AuroraServerlessMySqlDriver extends BaseDriver {
|
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
module.exports = AuroraServerlessMySqlDriver;
|
|
202
|
+
module.exports.AuroraServerlessMySqlDriver = AuroraServerlessMySqlDriver;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/mysql-aurora-serverless-driver",
|
|
3
|
-
"description": "Cube
|
|
3
|
+
"description": "Cube Aurora Serverless Mysql database driver",
|
|
4
4
|
"author": "Cube Dev, Inc.",
|
|
5
|
-
"version": "1.7.
|
|
5
|
+
"version": "1.7.38",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/cube-js/cube.git",
|
|
@@ -17,18 +17,17 @@
|
|
|
17
17
|
"test": "npm run unit && npm run integration",
|
|
18
18
|
"unit": "jest ./**/*.test.js",
|
|
19
19
|
"integration": "jest ./**/*.integration.js",
|
|
20
|
-
"integration:mysql-aurora-serverless": "npm run integration"
|
|
21
|
-
"lint": "eslint driver/*.js test/*.js"
|
|
20
|
+
"integration:mysql-aurora-serverless": "npm run integration"
|
|
22
21
|
},
|
|
23
22
|
"dependencies": {
|
|
24
|
-
"@cubejs-backend/base-driver": "1.7.
|
|
25
|
-
"@cubejs-backend/shared": "1.7.
|
|
23
|
+
"@cubejs-backend/base-driver": "1.7.38",
|
|
24
|
+
"@cubejs-backend/shared": "1.7.38",
|
|
26
25
|
"@types/mysql": "^2.15.19",
|
|
27
26
|
"aws-sdk": "^2.787.0",
|
|
28
27
|
"data-api-client": "^1.1.0"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
|
-
"@cubejs-backend/linter": "1.7.
|
|
30
|
+
"@cubejs-backend/linter": "1.7.38",
|
|
32
31
|
"@types/data-api-client": "^1.2.1",
|
|
33
32
|
"@types/jest": "^29",
|
|
34
33
|
"jest": "^29",
|
|
@@ -38,8 +37,5 @@
|
|
|
38
37
|
"publishConfig": {
|
|
39
38
|
"access": "public"
|
|
40
39
|
},
|
|
41
|
-
"
|
|
42
|
-
"extends": "../cubejs-linter"
|
|
43
|
-
},
|
|
44
|
-
"gitHead": "0e1c035e2b48a6b44cfd1f10d5c6e94b4bba76d6"
|
|
40
|
+
"gitHead": "9ea1fda5dade5b8a4256acd20bcf77318fe13a72"
|
|
45
41
|
}
|