@dbos-inc/dbos-sdk 0.9.11-preview → 0.9.15-preview.g3106cba55d

Sign up to get free protection for your applications and to get access to all the features.
@@ -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": [
@@ -12,7 +12,7 @@ docker run --rm --name=dbos-db --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDAT
12
12
  # Wait for PostgreSQL to start
13
13
  echo "Waiting for PostgreSQL to start..."
14
14
  for i in {1..30}; do
15
- if docker exec dbos-db pg_isready -U postgres | grep -q "accepting connections"; then
15
+ if docker exec dbos-db psql -U postgres -c "SELECT 1;" > /dev/null 2>&1; then
16
16
  echo "PostgreSQL started!"
17
17
  break
18
18
  fi
@@ -21,3 +21,5 @@ done
21
21
 
22
22
  # Create a database in Postgres.
23
23
  docker exec dbos-db psql -U postgres -c "CREATE DATABASE hello;"
24
+
25
+ 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.11-preview",
3
+ "version": "0.9.15-preview.g3106cba55d",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {