Repository navigation
Commit 4a6762d
authored
fix(databases): surface the id change when
Loading an undeclared table into a managed database triggers an
auto-declare path that delete+recreates the database (managed DBs have no
add-table endpoint), which mints a NEW database id. This was silent unless
existing tables had synced data — so the id printed by `databases create`
would go stale after the next `load`, and `databases delete <create-id>`
failed with "no database with id".
Emit a clear note on the recreate (old id -> new id) and point users to
reference managed databases by catalog (stable) rather than the
create-time id. Document the same in the managed-database workflow.
`databases create` itself is correct — the printed id matches `databases
list` immediately; only `load`'s recreate changed it.
Co-authored-by: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com>load recreates a managed database (#173)1 parent 6227a9b commit 4a6762d
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1016 | 1039 | | |
1017 | 1040 | | |
1018 | 1041 | | |
| |||
0 commit comments