@somewhere-cloud/cli 0.38.156 → 0.38.157
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/CHANGELOG.md +4 -0
- package/dist/lib/bundle.js +10 -0
- package/dist/lib/bundle.js.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.157
|
|
4
|
+
|
|
5
|
+
- Generated starter guides show how to import large CSV files in background jobs using batched writes.
|
|
6
|
+
|
|
3
7
|
## 0.38.156
|
|
4
8
|
|
|
5
9
|
- Piping a docs topic or redirecting it to a file prints the full topic. Use `somewhere docs --search "<words>"` to find matching sections or `somewhere docs pull` to download current Markdown into your project.
|
package/dist/lib/bundle.js
CHANGED
|
@@ -44183,6 +44183,16 @@ Use \`somewhere docs <topic> --section <id>\` for one section or \`--full\` for
|
|
|
44183
44183
|
PREVIEW_POINTER = "Preview users are separate from live users. Sign up in the preview or use `somewhere preview user-add`. Check captured mail with `somewhere preview mail`.";
|
|
44184
44184
|
INIT_AGENTS_MD = `# somewhere.cloud project contract
|
|
44185
44185
|
${AGENT_WORKFLOW}
|
|
44186
|
+
### CSV imports
|
|
44187
|
+
|
|
44188
|
+
Use one background job for a large import. Normalize and deduplicate keys
|
|
44189
|
+
before writing. Pair schema uniqueness with an \`onConflict\` action that makes
|
|
44190
|
+
each batch safe to retry. Send up to 100 writes per transaction with \`sw.db.tx\` or \`sw.db.server.tx\`.
|
|
44191
|
+
Await dependent batches in order. Run up to four independent batches together,
|
|
44192
|
+
then write one progress update for the group. Set the job deadline from a timed
|
|
44193
|
+
import on your deployed app. See \`somewhere docs recipe-csv-import --full\`
|
|
44194
|
+
for the upload, job and ownership checks.
|
|
44195
|
+
|
|
44186
44196
|
${SKILLS_POINTER}
|
|
44187
44197
|
Search the live docs with \`somewhere docs --search "<words>"\`.
|
|
44188
44198
|
Download Markdown to \`.somewhere/docs/\` with \`somewhere docs pull\`.
|