@dbos-inc/dbos-sdk 0.10.16-preview → 0.10.23-preview.gcf8e8224bd
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +1 -0
- 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 +33 -0
- package/dist/src/dbos-runtime/init.js.map +1 -1
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +1 -0
- package/dist/src/httpServer/handler.js.map +1 -1
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +10 -2
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/examples/hello/migrations/20240212161006_create_dbos_hello_tables.js +6 -2
- package/examples/hello/package-lock.json +2 -0
- package/package.json +3 -1
@@ -1,14 +1,18 @@
|
|
1
1
|
const { Knex } = require("knex");
|
2
2
|
|
3
3
|
exports.up = async function(knex) {
|
4
|
-
|
4
|
+
await knex.schema.createTable('dbos_hello', table => {
|
5
5
|
table.text('name').primary();
|
6
|
+
table.integer('greet_count').defaultTo(0);
|
7
|
+
});
|
8
|
+
|
9
|
+
return knex.schema.createTable('dbos_greetings', table => {
|
6
10
|
table.text('greeting_name');
|
7
11
|
table.text('greeting_note_content');
|
8
|
-
table.integer('greet_count').defaultTo(0);
|
9
12
|
});
|
10
13
|
};
|
11
14
|
|
12
15
|
exports.down = async function(knex) {
|
16
|
+
await knex.schema.dropTable('dbos_greetings');
|
13
17
|
return knex.schema.dropTable('dbos_hello');
|
14
18
|
};
|
@@ -46,6 +46,7 @@
|
|
46
46
|
"reflect-metadata": "^0.1.13",
|
47
47
|
"serialize-error": "8.1.0",
|
48
48
|
"uuid": "^9.0.0",
|
49
|
+
"validator": "^13.11.0",
|
49
50
|
"winston": "^3.10.0",
|
50
51
|
"yaml": "^2.3.1"
|
51
52
|
},
|
@@ -62,6 +63,7 @@
|
|
62
63
|
"@types/pg": "^8.11.0",
|
63
64
|
"@types/supertest": "^2.0.12",
|
64
65
|
"@types/uuid": "^9.0.8",
|
66
|
+
"@types/validator": "^13.11.9",
|
65
67
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
66
68
|
"@typescript-eslint/parser": "^6.7.2",
|
67
69
|
"eslint": "^8.49.0",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dbos-inc/dbos-sdk",
|
3
|
-
"version": "0.10.
|
3
|
+
"version": "0.10.23-preview.gcf8e8224bd",
|
4
4
|
"description": "A Typescript framework built on the database",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -35,6 +35,7 @@
|
|
35
35
|
"@types/pg": "^8.11.0",
|
36
36
|
"@types/supertest": "^2.0.12",
|
37
37
|
"@types/uuid": "^9.0.8",
|
38
|
+
"@types/validator": "^13.11.9",
|
38
39
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
39
40
|
"@typescript-eslint/parser": "^6.7.2",
|
40
41
|
"eslint": "^8.49.0",
|
@@ -65,6 +66,7 @@
|
|
65
66
|
"reflect-metadata": "^0.1.13",
|
66
67
|
"serialize-error": "8.1.0",
|
67
68
|
"uuid": "^9.0.0",
|
69
|
+
"validator": "^13.11.0",
|
68
70
|
"winston": "^3.10.0",
|
69
71
|
"yaml": "^2.3.1"
|
70
72
|
},
|