Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drizzle-kit

Package Overview
Dependencies
Maintainers
4
Versions
724
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drizzle-kit - npm Package Compare versions

Comparing version 0.28.0 to 0.28.1-d7e3535

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc