Skip to content

Commit

Permalink
Update dbos-config setting (#116)
Browse files Browse the repository at this point in the history
Companion PR for dbos-inc/dbos-transact-ts#291

Note: we still need to temporarily preserve the old fields before we
officially release this breaking change. Otherwise, our tests will fail.
  • Loading branch information
qianl15 authored Feb 21, 2024
1 parent 5480eee commit 439fd01
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 129 deletions.
7 changes: 4 additions & 3 deletions bank/bank-backend/dbos-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ database:
port: 5432
username: 'bank'
connectionTimeoutMillis: 3000
user_database: 'bank'
app_db_name: 'bank'
user_database: 'bank' # Will be deprecated, use app_db_name instead
password: ${PGPASSWORD}
system_database: 'dbos_bank_systemdb'
user_dbclient: "prisma"
app_db_client: "prisma"
user_dbclient: "prisma" # Will be deprecated, use app_db_client instead
telemetry:
logs:
logLevel: 'info'
Expand Down
7 changes: 4 additions & 3 deletions bank/bank-backend/dbos-test-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ database:
port: 5432
username: 'bank'
connectionTimeoutMillis: 3000
user_database: 'bank'
app_db_name: 'bank'
user_database: 'bank' # Will be deprecated, use app_db_name instead
password: ${PGPASSWORD}
system_database: 'dbos_bank_test_systemdb'
user_dbclient: "prisma"
app_db_client: "prisma"
user_dbclient: 'prisma' # Will be deprecated, use app_db_client instead
telemetry:
logs:
logLevel: 'debug'
Expand Down
126 changes: 16 additions & 110 deletions bank/bank-backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bank/bank-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"private": true,
"dependencies": {
"@dbos-inc/dbos-sdk": "^0.8.62",
"@dbos-inc/dbos-sdk": "^0.9.17",
"@koa/bodyparser": "^5.0.0",
"@koa/cors": "^5.0.0",
"@koa/router": "^12.0.0",
Expand Down
12 changes: 9 additions & 3 deletions e-commerce/payment-backend/dbos-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# To enable auto-completion and validation for this file in VSCode, install the RedHat YAML extension
# https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml

# yaml-language-server: $schema=https://raw.githubusercontent.com/dbos-inc/dbos-sdk/main/dbos-config.schema.json

database:
hostname: 'localhost'
port: 5432
username: 'postgres'
password: ${PGPASSWORD}
user_database: 'payment'
system_database: 'payment_systemdb'
app_db_name: 'payment'
user_database: 'payment' # Will be deprecated, use app_db_name instead
connectionTimeoutMillis: 3000
user_dbclient: 'knex'
app_db_client: 'knex'
user_dbclient: 'knex' # Will be deprecated, use app_db_client instead
migrate: ['npx knex migrate:latest']
rollback: ['npx knex migrate:rollback']
runtimeConfig:
Expand Down
12 changes: 9 additions & 3 deletions e-commerce/shop-backend/dbos-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# To enable auto-completion and validation for this file in VSCode, install the RedHat YAML extension
# https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml

# yaml-language-server: $schema=https://raw.githubusercontent.com/dbos-inc/dbos-sdk/main/dbos-config.schema.json

database:
hostname: 'localhost'
port: 5432
username: 'postgres'
password: ${PGPASSWORD}
user_database: 'shop'
system_database: 'shop_systemdb'
app_db_name: 'shop'
user_database: 'shop' # Will be deprecated, use app_db_name instead
connectionTimeoutMillis: 3000
user_dbclient: 'knex'
app_db_client: 'knex'
user_dbclient: 'knex' # Will be deprecated, use app_db_client instead
migrate: ['npx knex migrate:latest','npx knex seed:run']
rollback: ['npx knex migrate:rollback']
runtimeConfig:
Expand Down
5 changes: 3 additions & 2 deletions hello-extended/dbos-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ database:
port: 5432
username: 'postgres'
password: ${PGPASSWORD}
app_db_name: 'hello'
user_database: 'hello'
system_database: 'hello_systemdb'
connectionTimeoutMillis: 3000
user_dbclient: 'knex'
app_db_client: 'knex'
user_dbclient: 'knex'
4 changes: 3 additions & 1 deletion hello-prisma/dbos-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ database:
hostname: 'localhost'
port: 5432
username: 'postgres'
app_db_name: 'helloprisma'
user_database: 'helloprisma'
password: ${PGPASSWORD}
connectionTimeoutMillis: 3000
user_dbclient: "prisma"
app_db_client: "prisma"
user_dbclient: 'prisma'
2 changes: 2 additions & 0 deletions hello-typeorm/dbos-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ database:
hostname: 'localhost'
port: 5432
username: 'postgres'
app_db_name: 'hellotypeorm'
user_database: 'hellotypeorm'
password: ${PGPASSWORD}
connectionTimeoutMillis: 3000
app_db_client: "typeorm"
user_dbclient: "typeorm"
6 changes: 4 additions & 2 deletions tpcc/dbos-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ database:
port: 5432
username: 'postgres'
password: ${PGPASSWORD}
user_database: 'tpcc'
user_database: 'tpcc' # Will be deprecated, use app_db_name instead
app_db_name: 'tpcc'
connectionTimeoutMillis: 3000
user_dbclient: 'knex'
user_dbclient: 'knex' # Will be deprecated, use app_db_client instead
app_db_client: 'knex'
migrate: ['npx knex migrate:latest']
rollback: ['npx knex migrate:rollback']
3 changes: 2 additions & 1 deletion yky-social/dbos-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ database:
port: ${POSTGRES_PORT}
username: ${POSTGRES_USERNAME}
password: ${POSTGRES_PASSWORD}
app_db_name: ${POSTGRES_DATABASE}
user_database: ${POSTGRES_DATABASE}
system_database: 'opsys'
connectionTimeoutMillis: 3000
app_db_client: 'typeorm'
user_dbclient: 'typeorm'
telemetry:
logs:
Expand Down

0 comments on commit 439fd01

Please sign in to comment.