drizzle-kit
Advanced tools
Comparing version 0.28.0 to 0.28.1-d7e3535
{ | ||
"name": "drizzle-kit", | ||
"version": "0.28.0", | ||
"version": "0.28.1-d7e3535", | ||
"homepage": "https://orm.drizzle.team", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
## Drizzle Kit | ||
DrizzleKit - is a CLI migrator tool for DrizzleORM. It is probably one and only tool that lets you completely automatically generate SQL migrations and covers ~95% of the common cases like deletions and renames by prompting user input. | ||
Drizzle Kit is a CLI migrator tool for Drizzle ORM. It is probably the one and only tool that lets you completely automatically generate SQL migrations and covers ~95% of the common cases like deletions and renames by prompting user input. | ||
<https://github.com/drizzle-team/drizzle-kit-mirror> - is a mirror repository for issues. | ||
@@ -8,13 +8,13 @@ | ||
Check the full documenation on [the website](https://orm.drizzle.team/kit-docs/overview) | ||
Check the full documentation on [the website](https://orm.drizzle.team/kit-docs/overview). | ||
### How it works | ||
`drizzle-kit` will traverse `schema folder` or `schema file`, generate schema snapshot and compare it to the previous version, if there's one. | ||
Based on the difference it will generate all needed SQL migrations and if there are any `automatically unresolvable` cases like `renames` it will prompt user for input. | ||
Drizzle Kit traverses a schema module and generates a snapshot to compare with the previous version, if there is one. | ||
Based on the difference, it will generate all needed SQL migrations. If there are any cases that can't be resolved automatically, such as renames, it will prompt the user for input. | ||
For schema file: | ||
For example, for this schema module: | ||
```typescript | ||
// ./src/db/schema.ts | ||
// src/db/schema.ts | ||
@@ -67,3 +67,3 @@ import { integer, pgTable, serial, text, varchar } from "drizzle-orm/pg-core"; | ||
Running with CLI options | ||
Running with CLI options: | ||
@@ -70,0 +70,0 @@ ```jsonc |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6947394
184375