Details
-
Task
-
Resolution: Fixed
-
Major
-
6.x Doc Updates
-
DOC-2020-S4-Mar08, DOC-2020-S6-Apr05, DOC-2020-S7-Apr19
-
1
Description
In MB-37321, we added the capability for the cbq CLI tool to either overwrite content in a file or append to the existing file, this was added in 6.0.4 and (will be) in 6.5.1.
This behavior is controlled as follows:
Append results to the same redirected file by introducing FILE_APPEND_MODE
E.g. \REDIRECT +output_path
If there is "+" in front of output_path, open the file in append mode
Otherwise open in truncate modeWhen file is opened in Append mode Add timestamp to the redirected file at open.
E.g.:
– <2019-12-31T09:10:06.618-08:00> : opened in append mode
We need to add this detail to the documentation on the cbq CLI page (https://docs.couchbase.com/server/6.0/tools/cbq-shell.html) so that users know how to change the mode for redirect.
Attachments
Issue Links
- Clones
-
MB-37231 CBQ shell redirect output overwritten when using multiple source files
- Closed
- links to