@beyondwork/wb-cli 0.1.46 → 0.1.47

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.47
4
+
5
+ - `query "<sql>"` runs one read-only SQL query on the application data of the checkout's workblock and prints the rows as a table, or as JSON with `--json`. It reads the development data environment unless `--env <name>` names another. It returns at most 1,000 rows and says when the query found more.
6
+ - `query --named <Repository>.<name>` runs a named query of the checkout's branch as last pushed, instead of `<sql>`.
7
+ - `query --param name=value` gives the parameter `@name` its value, for `<sql>` and for `--named`. Repeat it for each parameter. A value that parses as JSON is sent as JSON, such as `10`, `true` or `["a","b"]`; any other value is text.
8
+ - On a tenant that cannot answer the query yet, `query` says so and changes nothing.
9
+ - `query` prints a line break or a tab in a value or a column name as `\n` or `\t`, so each row stays on one line.
10
+ - The output and the error messages of every command print control characters as escapes, such as `\u001b`, in text and in JSON, so no workblock value can send commands to the terminal. Line breaks and tabs stay as they are.
11
+
3
12
  ## v0.1.46
4
13
 
5
14
  - `clone` and `branches` accept the link of a module in a Space (`https://<tenant>/w/spaces/<space>/app/<module-id>`). They find the workblock behind the module and print its Studio URL. `clone` checks out the branch that the Space runs for you, unless `--branch` names another.