@nymphjs/driver-mysql 1.0.0-beta.13 → 1.0.0-beta.131
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 +612 -0
- package/README.md +5 -3
- package/dist/MySQLDriver.d.ts +109 -24
- package/dist/MySQLDriver.js +1655 -768
- package/dist/MySQLDriver.js.map +1 -1
- package/dist/MySQLDriver.test.js +13 -12
- package/dist/MySQLDriver.test.js.map +1 -1
- package/dist/conf/defaults.d.ts +1 -1
- package/dist/conf/defaults.js +1 -3
- package/dist/conf/defaults.js.map +1 -1
- package/dist/conf/index.d.ts +66 -2
- package/dist/conf/index.js +2 -8
- package/dist/conf/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -24
- package/dist/index.js.map +1 -1
- package/jest.config.js +31 -6
- package/package.json +36 -25
- package/src/MySQLDriver.test.ts +16 -5
- package/src/MySQLDriver.ts +2323 -1082
- package/src/conf/defaults.ts +1 -1
- package/src/conf/index.ts +67 -2
- package/src/index.ts +2 -2
- package/tsconfig.json +6 -3
- package/typedoc.json +4 -0
- package/dist/conf/d.d.ts +0 -15
- package/dist/conf/d.js +0 -3
- package/dist/conf/d.js.map +0 -1
- package/dist/runMysqlSync.js +0 -44
- package/src/conf/d.ts +0 -67
- package/src/runMysqlSync.js +0 -44
- package/src/testmysql.js +0 -32
package/package.json
CHANGED
|
@@ -1,51 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nymphjs/driver-mysql",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
4
|
-
"description": "
|
|
5
|
-
"type": "
|
|
3
|
+
"version": "1.0.0-beta.131",
|
|
4
|
+
"description": "Nymph.js - MySQL DB Driver",
|
|
5
|
+
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"nymph",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"nymph.js",
|
|
11
|
+
"application data framework",
|
|
12
|
+
"application data and access framework",
|
|
13
|
+
"nymph driver",
|
|
14
|
+
"mysql"
|
|
12
15
|
],
|
|
13
16
|
"scripts": {
|
|
14
17
|
"clean": "test -d dist && rm -r dist || true",
|
|
15
|
-
"build": "tsc
|
|
18
|
+
"build": "tsc",
|
|
16
19
|
"watch": "tsc --watch",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"test
|
|
20
|
-
"test:
|
|
21
|
-
"test:db:
|
|
22
|
-
"test:db:start": "docker run --name nymph-mysql -e MYSQL_ROOT_PASSWORD=123nymphroot -e MYSQL_DATABASE=nymph -e MYSQL_USER=nymph -e MYSQL_PASSWORD=nymph -p 3306:3306 mysql",
|
|
20
|
+
"prepublish": "npm run clean && npm run build",
|
|
21
|
+
"typecheck": "npx tsc --noEmit",
|
|
22
|
+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
|
|
23
|
+
"test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests --watch",
|
|
24
|
+
"test:db:start": "docker run --rm --name nymph-mysql -e MYSQL_ROOT_PASSWORD=123nymphroot -e MYSQL_DATABASE=nymph -e MYSQL_USER=nymph -e MYSQL_PASSWORD=nymph -p 3306:3306 mysql",
|
|
23
25
|
"test:db:stop": "docker kill -s TERM nymph-mysql"
|
|
24
26
|
},
|
|
25
27
|
"publishConfig": {
|
|
26
28
|
"access": "public"
|
|
27
29
|
},
|
|
30
|
+
"homepage": "https://nymph.io",
|
|
28
31
|
"repository": {
|
|
29
32
|
"type": "git",
|
|
30
|
-
"url": "
|
|
33
|
+
"url": "https://forge.sciactive.com/sciactive/nymphjs.git",
|
|
34
|
+
"directory": "packages/driver-mysql"
|
|
31
35
|
},
|
|
32
|
-
"author": "Hunter Perrin <hperrin@
|
|
36
|
+
"author": "Hunter Perrin <hperrin@port87.com>",
|
|
33
37
|
"bugs": {
|
|
34
|
-
"url": "https://
|
|
38
|
+
"url": "https://forge.sciactive.com/sciactive/nymphjs/issues"
|
|
35
39
|
},
|
|
36
40
|
"license": "Apache-2.0",
|
|
37
41
|
"dependencies": {
|
|
38
|
-
"@nymphjs/guid": "^1.0.0-beta.
|
|
39
|
-
"@nymphjs/nymph": "^1.0.0-beta.
|
|
40
|
-
"@
|
|
42
|
+
"@nymphjs/guid": "^1.0.0-beta.131",
|
|
43
|
+
"@nymphjs/nymph": "^1.0.0-beta.131",
|
|
44
|
+
"@sciactive/tokenizer": "^3.4.0",
|
|
45
|
+
"mysql2": "^3.23.4",
|
|
46
|
+
"sqlstring": "^2.3.3"
|
|
41
47
|
},
|
|
42
48
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
+
"@nymphjs/tilmeld": "^1.0.0-beta.131",
|
|
50
|
+
"@swc/core": "^1.16.1",
|
|
51
|
+
"@swc/jest": "^0.2.39",
|
|
52
|
+
"@tsconfig/recommended": "^1.0.13",
|
|
53
|
+
"@types/jest": "^30.0.0",
|
|
54
|
+
"@types/node": "^26.2.0",
|
|
55
|
+
"@types/sqlstring": "^2.3.2",
|
|
56
|
+
"cross-env": "^10.1.0",
|
|
57
|
+
"jest": "^30.4.2",
|
|
58
|
+
"ts-node": "^10.9.2",
|
|
59
|
+
"typescript": "^7.0.2"
|
|
49
60
|
},
|
|
50
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "35a54445bf163d6b9dcead02d89de929fc5f7d26"
|
|
51
62
|
}
|
package/src/MySQLDriver.test.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jest } from '@jest/globals';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { Nymph } from '@nymphjs/nymph';
|
|
4
|
+
import {
|
|
5
|
+
EntitiesTest,
|
|
6
|
+
UIDTest,
|
|
7
|
+
ExportImportTest,
|
|
8
|
+
} from '@nymphjs/nymph/dist/driver/testArtifacts.js';
|
|
9
|
+
import { TilmeldTest } from '@nymphjs/tilmeld/dist/testArtifacts.js';
|
|
10
|
+
|
|
11
|
+
import MySQLDriver from './MySQLDriver.js';
|
|
4
12
|
|
|
5
13
|
// When using remote server, this can be helpful.
|
|
6
14
|
jest.setTimeout(60000);
|
|
@@ -15,9 +23,12 @@ const mysqlConfig = {
|
|
|
15
23
|
const nymph = new Nymph({}, new MySQLDriver(mysqlConfig));
|
|
16
24
|
|
|
17
25
|
describe('MySQLDriver', () => {
|
|
18
|
-
|
|
19
|
-
UIDTest(nymph, it);
|
|
20
|
-
ExportImportTest(nymph, it);
|
|
26
|
+
EntitiesTest(nymph, describe, it);
|
|
27
|
+
UIDTest(nymph, describe, it);
|
|
28
|
+
ExportImportTest(nymph, describe, it);
|
|
29
|
+
|
|
30
|
+
const tilmeldNymph = nymph.clone();
|
|
31
|
+
TilmeldTest(tilmeldNymph, describe, it);
|
|
21
32
|
|
|
22
33
|
afterAll(async () => {
|
|
23
34
|
await nymph.driver.disconnect(); // avoid jest open handle error
|