@dbos-inc/create 3.0.45-preview.g34e483ff45 → 3.0.46-preview.g649d101bf0
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
|
@@ -11,11 +11,7 @@ import { DrizzleDataSource } from '@dbos-inc/drizzle-datasource';
|
|
|
11
11
|
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
12
12
|
|
|
13
13
|
const config = {
|
|
14
|
-
|
|
15
|
-
port: parseInt(process.env.PGPORT || '5432'),
|
|
16
|
-
database: process.env.PGDATABASE || 'dbos_drizzle',
|
|
17
|
-
user: process.env.PGUSER || 'postgres',
|
|
18
|
-
password: process.env.PGPASSWORD || 'dbos',
|
|
14
|
+
connectionString: process.env.DBOS_DATABASE_URL ?? 'postgres://postgres:dbos@localhost:5432/dbos_drizzle',
|
|
19
15
|
};
|
|
20
16
|
|
|
21
17
|
const drizzleds = new DrizzleDataSource<NodePgDatabase>('app-db', config);
|
|
@@ -9,13 +9,7 @@ import { KnexDataSource } from '@dbos-inc/knex-datasource';
|
|
|
9
9
|
|
|
10
10
|
const config = {
|
|
11
11
|
client: 'pg',
|
|
12
|
-
connection:
|
|
13
|
-
host: process.env.PGHOST || 'localhost',
|
|
14
|
-
port: parseInt(process.env.PGPORT || '5432'),
|
|
15
|
-
database: process.env.PGDATABASE || 'dbos_knex',
|
|
16
|
-
user: process.env.PGUSER || 'postgres',
|
|
17
|
-
password: process.env.PGPASSWORD || 'dbos',
|
|
18
|
-
},
|
|
12
|
+
connection: process.env.DBOS_DATABASE_URL ?? 'postgres://postgres:dbos@localhost:5432/dbos_knex',
|
|
19
13
|
};
|
|
20
14
|
|
|
21
15
|
const knexds = new KnexDataSource('app-db', config);
|
|
@@ -10,11 +10,7 @@ import { DBOSHello } from '../entities/DBOSHello';
|
|
|
10
10
|
import { TypeOrmDataSource } from '@dbos-inc/typeorm-datasource';
|
|
11
11
|
|
|
12
12
|
const config = {
|
|
13
|
-
|
|
14
|
-
port: parseInt(process.env.PGPORT || '5432'),
|
|
15
|
-
database: process.env.PGDATABASE || 'dbos_typeorm',
|
|
16
|
-
user: process.env.PGUSER || 'postgres',
|
|
17
|
-
password: process.env.PGPASSWORD || 'dbos',
|
|
13
|
+
connectionString: process.env.DBOS_DATABASE_URL ?? 'postgres://postgres:dbos@localhost:5432/dbos_typeorm',
|
|
18
14
|
};
|
|
19
15
|
|
|
20
16
|
const dataSource = new TypeOrmDataSource('app-db', config, [DBOSHello]);
|