@dbos-inc/dbos-sdk 0.9.15-preview.g32137f5fa0 → 0.9.16-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/packages/dbos-cloud/applications/get-app-info.d.ts +2 -0
  2. package/dist/packages/dbos-cloud/applications/get-app-info.d.ts.map +1 -0
  3. package/dist/packages/dbos-cloud/applications/get-app-info.js +54 -0
  4. package/dist/packages/dbos-cloud/applications/get-app-info.js.map +1 -0
  5. package/dist/packages/dbos-cloud/applications/list-apps.d.ts.map +1 -1
  6. package/dist/packages/dbos-cloud/applications/list-apps.js +2 -1
  7. package/dist/packages/dbos-cloud/applications/list-apps.js.map +1 -1
  8. package/dist/packages/dbos-cloud/applications/types.d.ts +2 -1
  9. package/dist/packages/dbos-cloud/applications/types.d.ts.map +1 -1
  10. package/dist/packages/dbos-cloud/cli.js +29 -25
  11. package/dist/packages/dbos-cloud/cli.js.map +1 -1
  12. package/dist/packages/dbos-cloud/cloudutils.d.ts +6 -1
  13. package/dist/packages/dbos-cloud/cloudutils.d.ts.map +1 -1
  14. package/dist/packages/dbos-cloud/cloudutils.js +23 -5
  15. package/dist/packages/dbos-cloud/cloudutils.js.map +1 -1
  16. package/dist/packages/dbos-cloud/login.d.ts +0 -7
  17. package/dist/packages/dbos-cloud/login.d.ts.map +1 -1
  18. package/dist/packages/dbos-cloud/login.js +14 -12
  19. package/dist/packages/dbos-cloud/login.js.map +1 -1
  20. package/dist/packages/dbos-cloud/userdb.d.ts +3 -1
  21. package/dist/packages/dbos-cloud/userdb.d.ts.map +1 -1
  22. package/dist/packages/dbos-cloud/userdb.js +42 -4
  23. package/dist/packages/dbos-cloud/userdb.js.map +1 -1
  24. package/dist/src/dbos-runtime/init.d.ts.map +1 -1
  25. package/dist/src/dbos-runtime/init.js +8 -7
  26. package/dist/src/dbos-runtime/init.js.map +1 -1
  27. package/dist/src/dbos-runtime/migrate.d.ts +1 -0
  28. package/dist/src/dbos-runtime/migrate.d.ts.map +1 -1
  29. package/dist/src/dbos-runtime/migrate.js +55 -28
  30. package/dist/src/dbos-runtime/migrate.js.map +1 -1
  31. package/dist/tsconfig.build.tsbuildinfo +1 -1
  32. package/examples/hello/dbos-config.yaml +2 -2
  33. package/examples/hello/package-lock.json +1 -0
  34. package/examples/hello/start_postgres_docker.sh +4 -1
  35. package/package.json +1 -1
@@ -11,5 +11,5 @@ database:
11
11
  user_database: 'hello'
12
12
  connectionTimeoutMillis: 3000
13
13
  user_dbclient: 'knex'
14
- migrate: ['migrate:latest']
15
- rollback: ['migrate:rollback']
14
+ migrate: ['npx knex migrate:latest']
15
+ rollback: ['npx knex migrate:rollback']
@@ -22,6 +22,7 @@
22
22
  }
23
23
  },
24
24
  "../..": {
25
+ "name": "@dbos-inc/dbos-sdk",
25
26
  "version": "0.0.0-placeholder",
26
27
  "license": "MIT",
27
28
  "workspaces": [
@@ -1,4 +1,5 @@
1
1
  #!/bin/bash
2
+ set -e
2
3
 
3
4
  # Check if PGPASSWORD is set
4
5
  if [[ -z "${PGPASSWORD}" ]]; then
@@ -12,7 +13,7 @@ docker run --rm --name=dbos-db --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDAT
12
13
  # Wait for PostgreSQL to start
13
14
  echo "Waiting for PostgreSQL to start..."
14
15
  for i in {1..30}; do
15
- if docker exec dbos-db pg_isready -U postgres | grep -q "accepting connections"; then
16
+ if docker exec dbos-db psql -U postgres -c "SELECT 1;" > /dev/null 2>&1; then
16
17
  echo "PostgreSQL started!"
17
18
  break
18
19
  fi
@@ -21,3 +22,5 @@ done
21
22
 
22
23
  # Create a database in Postgres.
23
24
  docker exec dbos-db psql -U postgres -c "CREATE DATABASE hello;"
25
+
26
+ echo "Database started successfully!"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "0.9.15-preview.g32137f5fa0",
3
+ "version": "0.9.16-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {