@ghom/orm 1.10.0 → 2.1.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/.github/workflows/test.yml +9 -9
- package/biome.json +52 -0
- package/bun.lock +488 -0
- package/dist/app/backup.d.ts +3 -3
- package/dist/app/backup.js +10 -11
- package/dist/app/column.d.ts +225 -0
- package/dist/app/column.js +342 -0
- package/dist/app/migration.d.ts +171 -0
- package/dist/app/migration.js +198 -0
- package/dist/app/orm.d.ts +26 -5
- package/dist/app/orm.js +69 -15
- package/dist/app/table.d.ts +112 -22
- package/dist/app/table.js +130 -27
- package/dist/app/util.d.ts +1 -1
- package/dist/app/util.js +4 -4
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/package.json +42 -47
- package/readme.md +91 -19
- package/tests/orm.test.ts +431 -0
- package/tests/tables/a.ts +16 -0
- package/tests/tables/b.ts +16 -0
- package/tests/tables/c.ts +14 -0
- package/tests/tables/d.ts +28 -0
- package/tsconfig.json +1 -0
- package/tests/tables/a.js +0 -25
- package/tests/tables/b.js +0 -30
- package/tests/tables/c.js +0 -17
- package/tests/test.js +0 -229
|
@@ -59,30 +59,30 @@ jobs:
|
|
|
59
59
|
steps:
|
|
60
60
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
61
61
|
- name: Checkout repository
|
|
62
|
-
uses: actions/checkout@
|
|
62
|
+
uses: actions/checkout@v4
|
|
63
63
|
|
|
64
|
-
- name: Setup
|
|
65
|
-
uses:
|
|
64
|
+
- name: Setup Bun
|
|
65
|
+
uses: oven-sh/setup-bun@v2
|
|
66
66
|
with:
|
|
67
|
-
|
|
67
|
+
bun-version: latest
|
|
68
68
|
|
|
69
69
|
- name: Install dependencies
|
|
70
|
-
run:
|
|
70
|
+
run: bun install
|
|
71
71
|
|
|
72
72
|
- name: Build the source
|
|
73
|
-
run:
|
|
73
|
+
run: bun run build
|
|
74
74
|
|
|
75
75
|
- name: Start the tests on SQLite
|
|
76
|
-
run:
|
|
76
|
+
run: bun test
|
|
77
77
|
|
|
78
78
|
- name: Start the tests on PostgreSQL
|
|
79
|
-
run:
|
|
79
|
+
run: bun test
|
|
80
80
|
env:
|
|
81
81
|
DB_CLIENT: pg
|
|
82
82
|
DB_CONNECTION: postgres://postgres:postgres@localhost:5432/postgres
|
|
83
83
|
|
|
84
84
|
- name: Start the tests on MySQL
|
|
85
|
-
run:
|
|
85
|
+
run: bun test
|
|
86
86
|
env:
|
|
87
87
|
DB_CLIENT: mysql2
|
|
88
88
|
DB_CONNECTION: mysql://root:mysql@localhost:3306/mysql
|
package/biome.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
|
|
3
|
+
"vcs": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"clientKind": "git",
|
|
6
|
+
"useIgnoreFile": true
|
|
7
|
+
},
|
|
8
|
+
"files": {
|
|
9
|
+
"includes": ["src/**/*.ts", "tests/**/*.ts"]
|
|
10
|
+
},
|
|
11
|
+
"formatter": {
|
|
12
|
+
"enabled": true,
|
|
13
|
+
"indentStyle": "space",
|
|
14
|
+
"indentWidth": 2,
|
|
15
|
+
"lineWidth": 100
|
|
16
|
+
},
|
|
17
|
+
"javascript": {
|
|
18
|
+
"formatter": {
|
|
19
|
+
"semicolons": "asNeeded",
|
|
20
|
+
"quoteStyle": "double"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"linter": {
|
|
24
|
+
"enabled": true,
|
|
25
|
+
"rules": {
|
|
26
|
+
"recommended": true,
|
|
27
|
+
"complexity": {
|
|
28
|
+
"noBannedTypes": "off"
|
|
29
|
+
},
|
|
30
|
+
"suspicious": {
|
|
31
|
+
"noExplicitAny": "off",
|
|
32
|
+
"noThenProperty": "off",
|
|
33
|
+
"useIterableCallbackReturn": "off"
|
|
34
|
+
},
|
|
35
|
+
"style": {
|
|
36
|
+
"noNonNullAssertion": "off",
|
|
37
|
+
"useNodejsImportProtocol": "off"
|
|
38
|
+
},
|
|
39
|
+
"correctness": {
|
|
40
|
+
"noUnusedVariables": "off",
|
|
41
|
+
"noUnusedImports": "off"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"assist": {
|
|
46
|
+
"actions": {
|
|
47
|
+
"source": {
|
|
48
|
+
"organizeImports": "on"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|