multi-db-orm 3.0.10 → 3.0.12
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/npm-publish.yml +27 -24
- package/.vscode/launch.json +29 -29
- package/.vscode/settings.json +10 -10
- package/Dockerfile +17 -17
- package/README.md +274 -260
- package/backup.js +107 -107
- package/databases.js +19 -19
- package/engines/bigquerydb.d.ts +36 -36
- package/engines/bigquerydb.js +236 -236
- package/engines/firestoredb.d.ts +39 -39
- package/engines/firestoredb.js +227 -227
- package/engines/hanadb.d.ts +24 -24
- package/engines/hanadb.js +244 -244
- package/engines/index.d.ts +8 -8
- package/engines/metrics.d.ts +8 -8
- package/engines/metrics.js +77 -77
- package/engines/mongodb.d.ts +18 -18
- package/engines/mongodb.js +148 -148
- package/engines/multidb.d.ts +41 -41
- package/engines/multidb.js +67 -67
- package/engines/mysqldb.d.ts +25 -25
- package/engines/mysqldb.js +2 -0
- package/engines/oracledb.d.ts +24 -24
- package/engines/oracledb.js +250 -250
- package/engines/sqlitedb.d.ts +11 -11
- package/engines/sqlitedb.js +166 -166
- package/index.js +23 -23
- package/migrate.sh +11 -11
- package/package.json +2 -2
- package/postinstall.js +8 -8
- package/restore.js +102 -102
- package/sync.d.ts +5 -5
- package/sync.js +48 -48
- package/test/models.js +23 -23
- package/test/test.js +434 -434
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- uses: actions/setup-node@
|
|
19
|
-
with:
|
|
20
|
-
node-version:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
name: NPM Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
npm_token:
|
|
7
|
+
description: "NPM access token"
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
publish:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: 18
|
|
21
|
+
registry-url: https://registry.npmjs.org/
|
|
22
|
+
|
|
23
|
+
- run: npm install
|
|
24
|
+
|
|
25
|
+
- run: npm publish
|
|
26
|
+
env:
|
|
27
|
+
NODE_AUTH_TOKEN: ${{ inputs.npm_token }}
|
package/.vscode/launch.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Launch via NPM",
|
|
9
|
-
"request": "launch",
|
|
10
|
-
"runtimeArgs": [
|
|
11
|
-
"run-script",
|
|
12
|
-
"test"
|
|
13
|
-
],
|
|
14
|
-
"runtimeExecutable": "npm",
|
|
15
|
-
"skipFiles": [
|
|
16
|
-
"<node_internals>/**"
|
|
17
|
-
],
|
|
18
|
-
"type": "node"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "node",
|
|
22
|
-
"request": "launch",
|
|
23
|
-
"name": "Launch Program",
|
|
24
|
-
"skipFiles": [
|
|
25
|
-
"<node_internals>/**"
|
|
26
|
-
],
|
|
27
|
-
"program": "${workspaceFolder}/test/test.js"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Launch via NPM",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"runtimeArgs": [
|
|
11
|
+
"run-script",
|
|
12
|
+
"test"
|
|
13
|
+
],
|
|
14
|
+
"runtimeExecutable": "npm",
|
|
15
|
+
"skipFiles": [
|
|
16
|
+
"<node_internals>/**"
|
|
17
|
+
],
|
|
18
|
+
"type": "node"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "node",
|
|
22
|
+
"request": "launch",
|
|
23
|
+
"name": "Launch Program",
|
|
24
|
+
"skipFiles": [
|
|
25
|
+
"<node_internals>/**"
|
|
26
|
+
],
|
|
27
|
+
"program": "${workspaceFolder}/test/test.js"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
30
|
}
|
package/.vscode/settings.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"sqltools.connections": [
|
|
3
|
-
{
|
|
4
|
-
"previewLimit": 50,
|
|
5
|
-
"driver": "SQLite",
|
|
6
|
-
"name": "test",
|
|
7
|
-
"database": "${workspaceFolder:multi-db-safe}/test.db"
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"sqltools.useNodeRuntime": true
|
|
1
|
+
{
|
|
2
|
+
"sqltools.connections": [
|
|
3
|
+
{
|
|
4
|
+
"previewLimit": 50,
|
|
5
|
+
"driver": "SQLite",
|
|
6
|
+
"name": "test",
|
|
7
|
+
"database": "${workspaceFolder:multi-db-safe}/test.db"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"sqltools.useNodeRuntime": true
|
|
11
11
|
}
|
package/Dockerfile
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# The base image
|
|
2
|
-
FROM node:10
|
|
3
|
-
|
|
4
|
-
# The working directory inside the image
|
|
5
|
-
WORKDIR /multi-db-safe
|
|
6
|
-
|
|
7
|
-
# Copy everything from folder with the docker file to /app
|
|
8
|
-
COPY . .
|
|
9
|
-
|
|
10
|
-
# Run a commandline when docker build
|
|
11
|
-
RUN npm install
|
|
12
|
-
|
|
13
|
-
# Upon start of image this command will run , This is taken as a startup command and can be overriden from cmd line when 'docker run'
|
|
14
|
-
CMD ["echo","Starting Migration..."]
|
|
15
|
-
|
|
16
|
-
# Upon start of image this command will run , This is taken as a stable command and cannot be overriden from cmd line when 'docker run'
|
|
17
|
-
ENTRYPOINT ["/multi-db-safe/migrate.sh"]
|
|
1
|
+
# The base image
|
|
2
|
+
FROM node:10
|
|
3
|
+
|
|
4
|
+
# The working directory inside the image
|
|
5
|
+
WORKDIR /multi-db-safe
|
|
6
|
+
|
|
7
|
+
# Copy everything from folder with the docker file to /app
|
|
8
|
+
COPY . .
|
|
9
|
+
|
|
10
|
+
# Run a commandline when docker build
|
|
11
|
+
RUN npm install
|
|
12
|
+
|
|
13
|
+
# Upon start of image this command will run , This is taken as a startup command and can be overriden from cmd line when 'docker run'
|
|
14
|
+
CMD ["echo","Starting Migration..."]
|
|
15
|
+
|
|
16
|
+
# Upon start of image this command will run , This is taken as a stable command and cannot be overriden from cmd line when 'docker run'
|
|
17
|
+
ENTRYPOINT ["/multi-db-safe/migrate.sh"]
|