@dbos-inc/dbos-sdk 1.9.2-preview → 1.9.5-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/schemas/system_db_schema.d.ts +4 -0
  2. package/dist/schemas/system_db_schema.d.ts.map +1 -1
  3. package/dist/src/dbos-executor.d.ts.map +1 -1
  4. package/dist/src/dbos-executor.js +1 -1
  5. package/dist/src/dbos-executor.js.map +1 -1
  6. package/dist/src/dbos-runtime/cli.d.ts +1 -0
  7. package/dist/src/dbos-runtime/cli.d.ts.map +1 -1
  8. package/dist/src/dbos-runtime/cli.js +4 -2
  9. package/dist/src/dbos-runtime/cli.js.map +1 -1
  10. package/dist/src/dbos-runtime/config.d.ts.map +1 -1
  11. package/dist/src/dbos-runtime/config.js +6 -0
  12. package/dist/src/dbos-runtime/config.js.map +1 -1
  13. package/dist/src/dbos-runtime/runtime.d.ts +1 -0
  14. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  15. package/dist/src/dbos-runtime/runtime.js +7 -0
  16. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  17. package/dist/src/index.d.ts +1 -0
  18. package/dist/src/index.d.ts.map +1 -1
  19. package/dist/src/index.js +5 -1
  20. package/dist/src/index.js.map +1 -1
  21. package/dist/src/kafka/kafka.d.ts +1 -0
  22. package/dist/src/kafka/kafka.d.ts.map +1 -1
  23. package/dist/src/kafka/kafka.js +35 -1
  24. package/dist/src/kafka/kafka.js.map +1 -1
  25. package/dist/src/scheduler/crontab.d.ts +19 -0
  26. package/dist/src/scheduler/crontab.d.ts.map +1 -0
  27. package/dist/src/scheduler/crontab.js +286 -0
  28. package/dist/src/scheduler/crontab.js.map +1 -0
  29. package/dist/src/scheduler/scheduler.d.ts +45 -0
  30. package/dist/src/scheduler/scheduler.d.ts.map +1 -0
  31. package/dist/src/scheduler/scheduler.js +165 -0
  32. package/dist/src/scheduler/scheduler.js.map +1 -0
  33. package/dist/src/system_database.d.ts +4 -0
  34. package/dist/src/system_database.d.ts.map +1 -1
  35. package/dist/src/system_database.js +22 -0
  36. package/dist/src/system_database.js.map +1 -1
  37. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  38. package/dist/src/testing/testing_runtime.js +5 -0
  39. package/dist/src/testing/testing_runtime.js.map +1 -1
  40. package/dist/src/workflow.d.ts.map +1 -1
  41. package/dist/src/workflow.js.map +1 -1
  42. package/dist/tsconfig.build.tsbuildinfo +1 -1
  43. package/migrations/20240430090000_tables.js +13 -0
  44. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ exports.up = function(knex) {
2
+ return knex.schema.withSchema('dbos')
3
+ .createTable('scheduler_state', function(table) {
4
+ table.text('workflow_fn_name').notNullable();
5
+ table.bigInteger('last_run_time').notNullable();
6
+ table.primary(['workflow_fn_name']);
7
+ })
8
+ };
9
+
10
+ exports.down = function(knex) {
11
+ return knex.schema.withSchema('dbos')
12
+ .dropTableIfExists('scheduler_state');
13
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "1.9.2-preview",
3
+ "version": "1.9.5-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {