Repository navigation
Commit 2dcf1d8
committed
docs: declare the key before the first load in both worked examples
Running the examples found an ordering bug I had just introduced. The
instant-database workflow loaded into `orders` at step 2, then ran
`tables add orders --key` at step 3 — which returns 409, because the
load had already declared the table. It also contradicted its own note
in the same step to declare before the first load. Declaration is now
step 2 and the load step 3, with the keyed sync as step 4.
SKILL.md's keyed example had the same trap across two adjacent blocks:
it declared `listings`, the table the preceding example had already
loaded into. It uses its own table and includes the initial load, so the
block stands alone and runs in the order given.
Both sequences were then run verbatim against the API: declare with key
and sort, load, upsert, delete, and read back the expected rows.
Also fixes the `databases tables load` row in README's command table,
which still described parquet and `--append` after the sweep updated the
row above it.1 parent 230b564 commit 2dcf1d8
3 files changed
Lines changed: 27 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | | - | |
153 | | - | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | | - | |
158 | | - | |
| 160 | + | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
| |||
123 | 133 | | |
124 | 134 | | |
125 | 135 | | |
126 | | - | |
127 | | - | |
| 136 | + | |
128 | 137 | | |
129 | 138 | | |
130 | | - | |
131 | 139 | | |
| 140 | + | |
132 | 141 | | |
133 | 142 | | |
134 | | - | |
135 | | - | |
| 143 | + | |
| 144 | + | |
136 | 145 | | |
137 | | - | |
| 146 | + | |
138 | 147 | | |
139 | 148 | | |
140 | 149 | | |
| |||
0 commit comments