@bungres/kit 0.4.0 → 0.6.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @bungres/kit
2
2
 
3
- CLI toolkit for [`@bungres/orm`](https://www.npmjs.com/package/@bungres/orm) — generate, migrate, push, pull, status, and drop your database schema with ease. 🐘✨
3
+ CLI toolkit for [`@bungres/orm`](https://www.npmjs.com/package/@bungres/orm) — initialize, generate, migrate, push, pull, status, and drop your database schema with ease. 🐘✨
4
4
 
5
5
  ## Requirements
6
6
 
@@ -25,7 +25,7 @@ export default defineConfig({
25
25
  schema: "./src/db/schema.ts",
26
26
  out: "./bungres", // Directory for migrations & generated files
27
27
  dbCredentials: {
28
- url: process.env.DATABASE_URL!,
28
+ url: Bun.env.DATABASE_URL!,
29
29
  },
30
30
  });
31
31
  ```
@@ -40,6 +40,7 @@ bun run bungres --help
40
40
 
41
41
  | Command | Description |
42
42
  |---|---|
43
+ | `bungres init` | Initialize bungres project with config file and db folder structure |
43
44
  | `bungres generate` | Write a timestamped `.sql` migration file from your schema |
44
45
  | `bungres migrate` | Run pending `.sql` files, track applied in `__bungres_migrations` |
45
46
  | `bungres push` | Apply schema directly to DB — no files (great for dev/prototyping) |
@@ -55,6 +56,7 @@ bun run bungres --help
55
56
  ### Usage Examples
56
57
 
57
58
  ```bash
59
+ bun run bungres init
58
60
  bun run bungres generate
59
61
  bun run bungres migrate
60
62
  bun run bungres push