@lowdefy/connection-knex 4.0.0-rc.9 → 4.0.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/dist/connections/Knex/Knex.js +1 -1
- package/dist/connections/Knex/KnexBuilder/KnexBuilder.js +2 -2
- package/dist/connections/Knex/KnexBuilder/schema.js +1 -1
- package/dist/connections/Knex/KnexRaw/KnexRaw.js +2 -2
- package/dist/connections/Knex/KnexRaw/schema.js +1 -1
- package/dist/connections/Knex/schema.js +1 -1
- package/dist/connections.js +1 -1
- package/dist/types.js +1 -1
- package/package.json +18 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -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);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -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/dist/connections.js
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/connection-knex",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -34,30 +34,28 @@
|
|
|
34
34
|
"files": [
|
|
35
35
|
"dist/*"
|
|
36
36
|
],
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
39
|
-
"clean": "rm -rf dist",
|
|
40
|
-
"prepublishOnly": "pnpm build",
|
|
41
|
-
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
42
|
-
},
|
|
43
37
|
"dependencies": {
|
|
44
|
-
"@lowdefy/helpers": "4.0.0
|
|
45
|
-
"knex": "2.
|
|
46
|
-
"mssql": "
|
|
38
|
+
"@lowdefy/helpers": "4.0.0",
|
|
39
|
+
"knex": "2.5.1",
|
|
40
|
+
"mssql": "10.0.1",
|
|
47
41
|
"mysql": "2.18.1",
|
|
48
|
-
"pg": "8.
|
|
49
|
-
"sqlite3": "5.1.
|
|
42
|
+
"pg": "8.11.3",
|
|
43
|
+
"sqlite3": "5.1.6"
|
|
50
44
|
},
|
|
51
45
|
"devDependencies": {
|
|
52
|
-
"@jest/globals": "28.1.
|
|
53
|
-
"@lowdefy/ajv": "4.0.0
|
|
54
|
-
"@swc/cli": "0.1.
|
|
55
|
-
"@swc/core": "1.3.
|
|
56
|
-
"@swc/jest": "0.2.
|
|
57
|
-
"jest": "28.1.
|
|
46
|
+
"@jest/globals": "28.1.3",
|
|
47
|
+
"@lowdefy/ajv": "4.0.0",
|
|
48
|
+
"@swc/cli": "0.1.63",
|
|
49
|
+
"@swc/core": "1.3.99",
|
|
50
|
+
"@swc/jest": "0.2.29",
|
|
51
|
+
"jest": "28.1.3"
|
|
58
52
|
},
|
|
59
53
|
"publishConfig": {
|
|
60
54
|
"access": "public"
|
|
61
55
|
},
|
|
62
|
-
"
|
|
63
|
-
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
58
|
+
"clean": "rm -rf dist",
|
|
59
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
60
|
+
}
|
|
61
|
+
}
|