@bungres/kit 1.0.0 → 1.1.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/README.md +3 -1
- package/dist/cli.js +717 -409
- package/dist/commands/drop.d.ts.map +1 -1
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/studio.d.ts.map +1 -1
- package/dist/commands/template.d.ts +4 -1
- package/dist/commands/template.d.ts.map +1 -1
- package/dist/differ.d.ts +8 -1
- package/dist/differ.d.ts.map +1 -1
- package/dist/index.js +249 -50
- package/dist/schema-loader.d.ts +16 -1
- package/dist/schema-loader.d.ts.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ bun run bungres --help
|
|
|
52
52
|
| `bungres seed` | Execute the seed script, or run the Auto-Seeder using `@faker-js/faker` |
|
|
53
53
|
| `bungres studio` | Start a local web interface to browse database data |
|
|
54
54
|
| `bungres tusky` | Boot up a Node REPL connected to the database with schema loaded |
|
|
55
|
-
| `bungres drop` | Drop all tables defined in the schema (prompts for confirmation) |
|
|
55
|
+
| `bungres drop` | Drop all tables, enums, and views defined in the schema (prompts for confirmation) |
|
|
56
56
|
|
|
57
57
|
### Usage Examples
|
|
58
58
|
|
|
@@ -77,6 +77,8 @@ bun run bungres drop --force # skip confirmation
|
|
|
77
77
|
- **Interactive UI**: Enjoy beautiful, interactive terminal prompts and spinners powered by `@clack/prompts`.
|
|
78
78
|
- **Drizzle-Style Diffs**: Before applying or generating migrations, visually inspect exactly what tables and columns will be added, dropped, or altered.
|
|
79
79
|
- **Rollbacks**: Single file migrations with `-- ==== UP ====` and `-- ==== DOWN ====` sections allow you to rollback your schema effortlessly.
|
|
80
|
+
- **Advanced Types & Views**: Full native Postgres support for `pgEnum`, Arrays, `pgView`, and `pgMaterializedView`. The differ natively tracks view signature changes and emits safe `DROP` / `CREATE` generation.
|
|
81
|
+
- **Intelligent Casting**: Alters column data types seamlessly by automatically managing and restoring `DEFAULT` constraints across incompatible type casts.
|
|
80
82
|
- **Auto-Seeder**: Run `bungres seed` without a custom script to automatically generate mock data for your database using `@faker-js/faker`, resolving foreign key dependencies automatically!
|
|
81
83
|
|
|
82
84
|
## License
|