drizzle-kit 0.15.0 → 0.16.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.
Files changed (3) hide show
  1. package/index.js +15065 -14786
  2. package/package.json +1 -1
  3. package/readme.md +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Alex Blokh <aleksandrblokh@gmail.com>",
6
6
  "license": "MIT",
package/readme.md CHANGED
@@ -86,6 +86,15 @@ $ drizzle-kit generate --dialect pg --schema src/schema.ts
86
86
  $ drizzle-kit generate --dialect .. --schema .. --out ./migration-folder
87
87
  ## runs generate command and outputs results to ./migration-folder
88
88
  ```
89
+
90
+
91
+ **`$ drizzle-kit introspect:pg`** - generate `schema.ts` file from existing PG database within seconds
92
+ ```shell
93
+ drizzle-kit introspect:pg --out=migrations/ --connectionString=postgresql://user:pass@host:port/db_name
94
+
95
+ drizzle-kit introspect:pg --out=migrations/ --host=0.0.0.0 --port=5432 --user=postgres --password=pass --database=db_name --ssl
96
+ ```
97
+
89
98
  **`$ drizzle-kit up`** - updates stale snapshots
90
99
  `--config` [optional defalut=drizzle.config.json] path to an optional config file\
91
100
  `--dialect` [optional default=pg] database dialect, one of -> pg, mysql, sqlite\