pg-migration-engine 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -127,7 +127,7 @@ npm install pg-migration-engine
127
127
 
128
128
  ```javascript
129
129
  import pg from 'pg';
130
- import { PgMigrationEngine } from 'pg-migration-engine';
130
+ import { SwMigrationEngine } from 'pg-migration-engine';
131
131
 
132
132
  const pool = new pg.Pool({
133
133
  host: 'localhost',
@@ -137,7 +137,7 @@ const pool = new pg.Pool({
137
137
  password: 'pass'
138
138
  });
139
139
 
140
- const engine = new PgMigrationEngine();
140
+ const engine = new SwMigrationEngine();
141
141
 
142
142
  // Introspect current database
143
143
  const snapshot = await engine.introspect(pool);
@@ -236,13 +236,13 @@ Full API: [API Reference](https://github.com/Schema-Weaver/pg-migration-engine/w
236
236
 
237
237
  ```javascript
238
238
  import { parsePostgresSQL } from 'pg-ddl-parser';
239
- import { PgMigrationEngine } from 'pg-migration-engine';
239
+ import { SwMigrationEngine } from 'pg-migration-engine';
240
240
 
241
241
  // Parse DDL → desired schema
242
242
  const desired = parsePostgresSQL(fs.readFileSync('schema.sql', 'utf8'));
243
243
 
244
244
  // Migrate
245
- const engine = new PgMigrationEngine();
245
+ const engine = new SwMigrationEngine();
246
246
  await engine.migrate(pool, convertParsedToSnapshot(desired));
247
247
  ```
248
248
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-migration-engine",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "PostgreSQL schema migration engine. Introspect, diff, generate DDL, and execute safe migrations for 50+ object types across PG10-18.",
5
5
  "license": "BSL-1.1",
6
6
  "author": "Schema Weaver",