Commit 383fe36
committed
init: default db:generate to --pglite
Fixes #2
Scaffolded db:generate previously ran 'pgstrap generate', which requires
a running Postgres instance. Running 'bun run db:generate' on a fresh
project would fail with a connection error.
Default to '--pglite' so type generation works out of the box against an
in-memory PGlite instance. Users who need to generate against a real
Postgres (e.g. via DATABASE_URL) can drop the flag from the scaffolded
script.
- src/init.ts: scaffold db:generate with --pglite
- tests/init.test.ts: assert the new default and add a regression test
- README.md: document the new default
/claim #21 parent 3039eee commit 383fe36
3 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments