@dbos-inc/dbos-sdk 0.9.6-preview → 0.9.9-preview
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/dbos-executor.d.ts +1 -0
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +5 -3
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/init.d.ts.map +1 -1
- package/dist/src/dbos-runtime/init.js +1 -0
- package/dist/src/dbos-runtime/init.js.map +1 -1
- package/dist/src/system_database.d.ts +4 -3
- package/dist/src/system_database.d.ts.map +1 -1
- package/dist/src/system_database.js +9 -2
- package/dist/src/system_database.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/examples/hello/knexfile.js +20 -0
- package/examples/hello/migrations/{create_dbos_hello_tables.ts → 20240212161006_create_dbos_hello_tables.js} +5 -5
- package/examples/hello/package-lock.json +5401 -0
- package/examples/hello/package.json +2 -4
- package/package.json +5 -12
- package/examples/hello/knexfile.ts +0 -23
@@ -8,8 +8,7 @@
|
|
8
8
|
"lint-fix": "eslint --fix src"
|
9
9
|
},
|
10
10
|
"devDependencies": {
|
11
|
-
"@dbos-inc/eslint-plugin": "^0.0.
|
12
|
-
"@dbos-inc/dbos-cloud": "^0.8.41-preview",
|
11
|
+
"@dbos-inc/eslint-plugin": "^0.0.6",
|
13
12
|
"@types/jest": "^29.5.5",
|
14
13
|
"@types/supertest": "^2.0.14",
|
15
14
|
"eslint": "^8.56.0",
|
@@ -19,7 +18,6 @@
|
|
19
18
|
"typescript": "^5.2.2"
|
20
19
|
},
|
21
20
|
"dependencies": {
|
22
|
-
"@dbos-inc/dbos-sdk": "../.."
|
23
|
-
"ts-node": "^10.9.1"
|
21
|
+
"@dbos-inc/dbos-sdk": "../.."
|
24
22
|
}
|
25
23
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dbos-inc/dbos-sdk",
|
3
|
-
"version": "0.9.
|
3
|
+
"version": "0.9.9-preview",
|
4
4
|
"description": "A Typescript framework built on the database",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -27,12 +27,14 @@
|
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
29
|
"@prisma/client": "^5.3.1",
|
30
|
-
"@types/
|
30
|
+
"@types/koa": "^2.14.0",
|
31
31
|
"@types/koa__cors": "^5.0.0",
|
32
32
|
"@types/koa__router": "^12.0.0",
|
33
|
-
"@types/
|
33
|
+
"@types/lodash": "^4.14.202",
|
34
34
|
"@types/node": "^20.6.3",
|
35
|
+
"@types/pg": "^8.11.0",
|
35
36
|
"@types/supertest": "^2.0.12",
|
37
|
+
"@types/uuid": "^9.0.8",
|
36
38
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
37
39
|
"@typescript-eslint/parser": "^6.7.2",
|
38
40
|
"eslint": "^8.49.0",
|
@@ -53,20 +55,11 @@
|
|
53
55
|
"@opentelemetry/exporter-logs-otlp-proto": "0.46.0",
|
54
56
|
"@opentelemetry/exporter-trace-otlp-proto": "0.46.0",
|
55
57
|
"@opentelemetry/sdk-trace-base": "1.19.0",
|
56
|
-
"@types/koa": "^2.13.8",
|
57
|
-
"@types/lodash": "^4.14.197",
|
58
|
-
"@types/pg": "^8.10.2",
|
59
|
-
"@types/uuid": "^9.0.2",
|
60
58
|
"axios": "^1.6.0",
|
61
59
|
"commander": "^11.0.0",
|
62
60
|
"fast-glob": "^3.3.1",
|
63
|
-
"form-data": "^4.0.0",
|
64
|
-
"jsonwebtoken": "^9.0.2",
|
65
|
-
"jwks-rsa": "^3.1.0",
|
66
|
-
"jwt-simple": "^0.5.6",
|
67
61
|
"knex": "^3.0.1",
|
68
62
|
"koa": "^2.14.2",
|
69
|
-
"koa-logger": "^3.2.1",
|
70
63
|
"lodash": "^4.17.21",
|
71
64
|
"pg": "^8.11.1",
|
72
65
|
"reflect-metadata": "^0.1.13",
|
@@ -1,23 +0,0 @@
|
|
1
|
-
// knexfile.ts
|
2
|
-
|
3
|
-
import { Knex } from 'knex';
|
4
|
-
import { parseConfigFile } from '@dbos-inc/dbos-sdk/dist/src/dbos-runtime/config';
|
5
|
-
import { DBOSConfig } from '@dbos-inc/dbos-sdk/dist/src/dbos-executor';
|
6
|
-
|
7
|
-
const [dbosConfig, ]: [DBOSConfig, unknown] = parseConfigFile();
|
8
|
-
|
9
|
-
const config: Knex.Config = {
|
10
|
-
client: 'pg',
|
11
|
-
connection: {
|
12
|
-
host: dbosConfig.poolConfig.host,
|
13
|
-
user: dbosConfig.poolConfig.user,
|
14
|
-
password: dbosConfig.poolConfig.password,
|
15
|
-
database: dbosConfig.poolConfig.database,
|
16
|
-
ssl: dbosConfig.poolConfig.ssl,
|
17
|
-
},
|
18
|
-
migrations: {
|
19
|
-
directory: './migrations'
|
20
|
-
}
|
21
|
-
};
|
22
|
-
|
23
|
-
export default config;
|