@dbsp/core 5.0.0 → 6.0.0

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/README.md CHANGED
@@ -15,7 +15,7 @@ pnpm add @dbsp/core @dbsp/adapter-pgsql
15
15
 
16
16
  ```typescript
17
17
  import { schema, ref, createOrm, eq } from '@dbsp/core';
18
- import { createPgsqlAdapter } from '@dbsp/adapter-pgsql';
18
+ import { createPgAdapter } from '@dbsp/adapter-pgsql';
19
19
  import { Pool } from 'pg';
20
20
 
21
21
  // 1. Define schema
@@ -27,7 +27,7 @@ const db = schema({
27
27
  // 2. Create ORM
28
28
  const orm = createOrm({
29
29
  schema: db,
30
- adapter: createPgsqlAdapter(new Pool({ connectionString: process.env.DATABASE_URL })),
30
+ adapter: createPgAdapter(new Pool({ connectionString: process.env.DATABASE_URL })),
31
31
  });
32
32
 
33
33
  // 3. Query