@getxflow/cli 0.10.4 → 0.10.5
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/dist/commands/db.js +8 -1
- package/dist/help.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/xflow/SKILL.md +3 -2
package/dist/commands/db.js
CHANGED
|
@@ -177,7 +177,14 @@ async function dbQuery(args) {
|
|
|
177
177
|
}
|
|
178
178
|
(0, ui_1.table)([data.columns, ...data.rows.map((row) => data.columns.map((column) => cell(row[column])))]);
|
|
179
179
|
if (data.truncated) {
|
|
180
|
-
|
|
180
|
+
// "raise --limit" used to be the whole advice, and for a long time it was
|
|
181
|
+
// impossible to follow: the ceiling and the default were the same number, so
|
|
182
|
+
// the flag could only ask for less. Now it can ask for more, and the line
|
|
183
|
+
// says so only while there is room left.
|
|
184
|
+
const room = data.limit !== undefined && data.limit_max !== undefined && data.limit < data.limit_max;
|
|
185
|
+
(0, ui_1.note)((0, ui_1.dim)(room
|
|
186
|
+
? ` Shown ${data.rows.length} of ${data.total}: raise --limit (up to ${data.limit_max}), or narrow the query`
|
|
187
|
+
: ` Shown ${data.rows.length} of ${data.total}: narrow the query, with a where clause or an offset`));
|
|
181
188
|
}
|
|
182
189
|
}
|
|
183
190
|
async function dbMigrate(args) {
|
package/dist/help.js
CHANGED
|
@@ -203,7 +203,7 @@ will work.`,
|
|
|
203
203
|
xflow db status what is applied and what is waiting
|
|
204
204
|
xflow db list databases of the organization, and who is on them
|
|
205
205
|
xflow db schema [table] tables of the project, or the columns of one
|
|
206
|
-
xflow db query "select ..." read data (--limit N)
|
|
206
|
+
xflow db query "select ..." read data (--limit N: 50 by default, 300 at most)
|
|
207
207
|
xflow db migrate apply migrations/*.sql
|
|
208
208
|
|
|
209
209
|
${(0, ui_1.bold)('list')} is about the organization, not about this project: it names the logical
|
package/dist/version.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEFAULT_API_URL = exports.CLI_VERSION = void 0;
|
|
4
4
|
/** Keep in sync with cli/package.json. */
|
|
5
|
-
exports.CLI_VERSION = '0.10.
|
|
5
|
+
exports.CLI_VERSION = '0.10.5';
|
|
6
6
|
/** Overridden by XFLOW_API_URL or the `api` field in xflow.json. */
|
|
7
7
|
exports.DEFAULT_API_URL = 'https://app.getxflow.com';
|
package/package.json
CHANGED
package/skills/xflow/SKILL.md
CHANGED
|
@@ -24,7 +24,7 @@ contains the fix.
|
|
|
24
24
|
|
|
25
25
|
## Keeping these instructions current
|
|
26
26
|
|
|
27
|
-
These instructions ship with xflow CLI 0.10.
|
|
27
|
+
These instructions ship with xflow CLI 0.10.5. They travel inside the package, so the copy
|
|
28
28
|
you are reading can be older than the CLI answering your commands, and nothing about that
|
|
29
29
|
is visible in the text itself.
|
|
30
30
|
|
|
@@ -402,7 +402,8 @@ repository: that is somebody else's project. `xflow db list` names the databases
|
|
|
402
402
|
organization and the projects on each, which is where you find out who else is on yours.
|
|
403
403
|
For the same reason `migrations/` is not the
|
|
404
404
|
schema. It says what you did; `xflow db schema [table]` says what is in the database right
|
|
405
|
-
now, and `xflow db query "select ..."` reads it inside a READ ONLY transaction
|
|
405
|
+
now, and `xflow db query "select ..."` reads it inside a READ ONLY transaction (50 rows by
|
|
406
|
+
default, `--limit` raises that to 300). Look before
|
|
406
407
|
you write a migration against a shared database.
|
|
407
408
|
|
|
408
409
|
## File storage
|