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.
- package/index.js +15065 -14786
- package/package.json +1 -1
- package/readme.md +9 -0
package/package.json
CHANGED
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\
|