@dbos-inc/create 2.6.19 → 2.7.13-preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/create",
3
- "version": "2.6.19",
3
+ "version": "2.7.13-preview",
4
4
  "description": "Tool for performing project initialization from template",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -4,6 +4,7 @@
4
4
  # yaml-language-server: $schema=https://raw.githubusercontent.com/dbos-inc/dbos-transact/main/dbos-config.schema.json
5
5
 
6
6
  language: node
7
+ database_url: ${DBOS_DATABASE_URL}
7
8
  database:
8
9
  app_db_client: drizzle
9
10
  migrate:
@@ -3,7 +3,9 @@
3
3
 
4
4
  # yaml-language-server: $schema=https://raw.githubusercontent.com/dbos-inc/dbos-transact/main/dbos-config.schema.json
5
5
 
6
+ name: dbos-knex
6
7
  language: node
8
+ database_url: ${DBOS_DATABASE_URL}
7
9
  database:
8
10
  app_db_client: knex
9
11
  migrate:
@@ -82,6 +82,10 @@ app.get('/greeting/:name', (req: Request, res: Response) => {
82
82
 
83
83
  // Finally, launch DBOS and start the server
84
84
  async function main() {
85
+ DBOS.setConfig({
86
+ name: 'dbos-knex',
87
+ databaseUrl: process.env.DBOS_DATABASE_URL,
88
+ });
85
89
  await DBOS.launch({ expressApp: app });
86
90
  const PORT = 3000;
87
91
  const ENV = process.env.NODE_ENV || 'development';
@@ -4,6 +4,7 @@
4
4
  # yaml-language-server: $schema=https://raw.githubusercontent.com/dbos-inc/dbos-transact/main/dbos-config.schema.json
5
5
 
6
6
  language: node
7
+ database_url: ${DBOS_DATABASE_URL}
7
8
  database:
8
9
  app_db_client: prisma
9
10
  migrate:
@@ -6,12 +6,12 @@ const [dbosConfig] = parseConfigFile();
6
6
 
7
7
  const AppDataSource = new DataSource({
8
8
  type: 'postgres',
9
- host: dbosConfig.poolConfig.host,
10
- port: dbosConfig.poolConfig.port,
11
- username: dbosConfig.poolConfig.user,
12
- password: dbosConfig.poolConfig.password as string,
13
- database: dbosConfig.poolConfig.database,
14
- ssl: dbosConfig.poolConfig.ssl as TlsOptions,
9
+ host: dbosConfig.poolConfig!.host,
10
+ port: dbosConfig.poolConfig!.port,
11
+ username: dbosConfig.poolConfig!.user,
12
+ password: dbosConfig.poolConfig!.password as string,
13
+ database: dbosConfig.poolConfig!.database,
14
+ ssl: dbosConfig.poolConfig!.ssl as TlsOptions,
15
15
  entities: ['dist/entities/*.js'],
16
16
  migrations: ['dist/migrations/*.js'],
17
17
  });
@@ -4,6 +4,7 @@
4
4
  # yaml-language-server: $schema=https://raw.githubusercontent.com/dbos-inc/dbos-transact/main/dbos-config.schema.json
5
5
 
6
6
  language: node
7
+ database_url: ${DBOS_DATABASE_URL}
7
8
  database:
8
9
  app_db_client: typeorm
9
10
  migrate: