@proteinjs/db-driver-knex 1.9.4 → 1.10.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.10.0](https://github.com/proteinjs/db/compare/@proteinjs/db-driver-knex@1.9.4...@proteinjs/db-driver-knex@1.10.0) (2026-08-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* cursor-window paging owner; RecordIterator migrated off offset paging ([453c4a2](https://github.com/proteinjs/db/commit/453c4a2a5f87bd7b58b0042185100bcf9ae0e183))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.9.4](https://github.com/proteinjs/db/compare/@proteinjs/db-driver-knex@1.9.3...@proteinjs/db-driver-knex@1.9.4) (2026-08-14)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @proteinjs/db-driver-knex
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecordIterator.test.d.ts","sourceRoot":"","sources":["../../test/RecordIterator.test.ts"],"names":[],"mappings":"AAIA,OAAO,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var test_1 = require("@proteinjs/db/test");
|
|
4
|
+
var db_driver_knex_1 = require("@proteinjs/db-driver-knex");
|
|
5
|
+
var db_transaction_context_1 = require("@proteinjs/db-transaction-context");
|
|
6
|
+
var getDropTestTable_1 = require("./util/getDropTestTable");
|
|
7
|
+
require("../generated/test/index");
|
|
8
|
+
var knexDriver = new db_driver_knex_1.KnexDriver({
|
|
9
|
+
host: 'localhost',
|
|
10
|
+
user: 'root',
|
|
11
|
+
password: '',
|
|
12
|
+
dbName: 'test',
|
|
13
|
+
});
|
|
14
|
+
describe('RecordIterator cursor-window tests', (0, test_1.recordIteratorTests)(knexDriver, new db_transaction_context_1.TransactionContext(), (0, getDropTestTable_1.getDropTestTable)(knexDriver)));
|
|
15
|
+
//# sourceMappingURL=RecordIterator.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecordIterator.test.js","sourceRoot":"","sources":["../../test/RecordIterator.test.ts"],"names":[],"mappings":";;AAAA,2CAAyD;AACzD,4DAAuD;AACvD,4EAAuE;AACvE,4DAA2D;AAC3D,mCAAiC;AAEjC,IAAM,UAAU,GAAG,IAAI,2BAAU,CAAC;IAChC,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,MAAM;CACf,CAAC,CAAC;AAEH,QAAQ,CACN,oCAAoC,EACpC,IAAA,0BAAmB,EAAC,UAAU,EAAE,IAAI,2CAAkB,EAAE,EAAE,IAAA,mCAAgB,EAAC,UAAU,CAAC,CAAC,CACxF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proteinjs/db-driver-knex",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"main": "./dist/generated/index.js",
|
|
5
5
|
"types": "./dist/generated/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"test": "jest --runInBand --passWithNoTests"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@proteinjs/db": "^1.
|
|
45
|
-
"@proteinjs/db-query": "^1.
|
|
46
|
-
"@proteinjs/db-transaction-context": "^0.5.
|
|
44
|
+
"@proteinjs/db": "^1.31.0",
|
|
45
|
+
"@proteinjs/db-query": "^1.7.0",
|
|
46
|
+
"@proteinjs/db-transaction-context": "^0.5.7",
|
|
47
47
|
"@proteinjs/logger": "^1.0.21",
|
|
48
48
|
"@proteinjs/reflection": "^1.1.12",
|
|
49
49
|
"@proteinjs/util": "^1.6.1",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"ts-jest": "29.1.1",
|
|
68
68
|
"typescript": "5.2.2"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "d84e548336f96b2541c1fbbe6a9ad6074df610c7"
|
|
71
71
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { recordIteratorTests } from '@proteinjs/db/test';
|
|
2
|
+
import { KnexDriver } from '@proteinjs/db-driver-knex';
|
|
3
|
+
import { TransactionContext } from '@proteinjs/db-transaction-context';
|
|
4
|
+
import { getDropTestTable } from './util/getDropTestTable';
|
|
5
|
+
import '../generated/test/index';
|
|
6
|
+
|
|
7
|
+
const knexDriver = new KnexDriver({
|
|
8
|
+
host: 'localhost',
|
|
9
|
+
user: 'root',
|
|
10
|
+
password: '',
|
|
11
|
+
dbName: 'test',
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
describe(
|
|
15
|
+
'RecordIterator cursor-window tests',
|
|
16
|
+
recordIteratorTests(knexDriver, new TransactionContext(), getDropTestTable(knexDriver))
|
|
17
|
+
);
|