@lowdefy/connection-knex 4.0.0-rc.1 → 4.0.0-rc.10
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.
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/ import knex from 'knex';
|
|
16
16
|
import { type } from '@lowdefy/helpers';
|
|
17
17
|
import schema from './schema.js';
|
|
18
|
-
async function KnexBuilder({ request
|
|
18
|
+
async function KnexBuilder({ request, connection }) {
|
|
19
19
|
let client = knex(connection);
|
|
20
20
|
if (request.tableName) {
|
|
21
21
|
client = client(request.tableName);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import knex from 'knex';
|
|
16
16
|
import schema from './schema.js';
|
|
17
|
-
async function KnexRaw({ request
|
|
17
|
+
async function KnexRaw({ request, connection }) {
|
|
18
18
|
const client = knex(connection);
|
|
19
19
|
const res = await client.raw(request.query, request.parameters);
|
|
20
20
|
Object.keys(res).forEach((key)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/connection-knex",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -41,23 +41,23 @@
|
|
|
41
41
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@lowdefy/helpers": "4.0.0-rc.
|
|
45
|
-
"knex": "2.
|
|
44
|
+
"@lowdefy/helpers": "4.0.0-rc.10",
|
|
45
|
+
"knex": "2.4.2",
|
|
46
46
|
"mssql": "9.0.1",
|
|
47
47
|
"mysql": "2.18.1",
|
|
48
48
|
"pg": "8.8.0",
|
|
49
|
-
"sqlite3": "5.1.
|
|
49
|
+
"sqlite3": "5.1.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@jest/globals": "28.1.
|
|
53
|
-
"@lowdefy/ajv": "4.0.0-rc.
|
|
54
|
-
"@swc/cli": "0.1.
|
|
55
|
-
"@swc/core": "1.3.
|
|
56
|
-
"@swc/jest": "0.2.
|
|
57
|
-
"jest": "28.1.
|
|
52
|
+
"@jest/globals": "28.1.3",
|
|
53
|
+
"@lowdefy/ajv": "4.0.0-rc.10",
|
|
54
|
+
"@swc/cli": "0.1.62",
|
|
55
|
+
"@swc/core": "1.3.70",
|
|
56
|
+
"@swc/jest": "0.2.27",
|
|
57
|
+
"jest": "28.1.3"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "537af074f27770e32da9da8d48490f2eda94b406"
|
|
63
63
|
}
|