You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prints the currently open Change Streams as a JSON string. A JSON string is printed separately on a newline for each open Change Stream. The behaviour of the function can be controlled with the available parameters (see parameter defaults for default behaviour). See documentation for `listChangeStreams(extended?: boolean, allUsers?: boolean, nsFilter?: Array<string>)` for more details about the available parameters.
Prints the currently open Change Streams as a CSV string with "||||" as the default delimeter. A string is printed separately on a newline for each open Change Stream. The behaviour of the function can be controlled with the available parameters (see parameter defaults for default behaviour). The delimiter parameter allows overriding the default delimiter. See documentation for `listChangeStreams(extended?: boolean, allUsers?: boolean, nsFilter?: Array<string>)` for more details about the other available parameters.
print("Prints a table with the currently open Change Streams. The behaviour of the function can be controlled with the available parameters (see parameter defaults for default behaviour).")
76
112
print("\t See prettyPrintChangeStreamPipeline.help() to pretty print a change stream pipeline. ")
77
113
print("\t See ChangeStreamsData.help() and ExtendedChangeStreamsData.help() for data outputted in extended and non-extended mode.")
78
114
print("\t @param extended — Controls whether a simple or extended output is presented. Refer to ExtendedChangeStreamsData. Defaults to false.")
79
-
print("\t @param allUsers — Boolean that correspond's to the allUsers flag of the $currentOp MongoDB Pipeline Stage i.e. If set to false, $currentOp only reports on operations/idle connections/idle cursors/idle sessions belonging to the user who ran the command. If set to true, $currentOp reports operations belonging to all users. Defailts to true.")
115
+
print("\t @param allUsers — Boolean that correspond's to the allUsers flag of the $currentOp MongoDB Pipeline Stage i.e. If set to false, $currentOp only reports on operations/idle connections/idle cursors/idle sessions belonging to the user who ran the command. If set to true, $currentOp reports operations belonging to all users. Defaults to true.")
80
116
print("\t @param nsFilter — An optional array of namespace filter. Defaults to [] i.e. to filter.")
81
117
}
82
118
@@ -88,12 +124,70 @@ function _listChangeStreamsHelp(){
88
124
* @param {boolean} allUsers Boolean that correspond's to the allUsers flag of the $currentOp MongoDB Pipeline Stage i.e.
89
125
* If set to false, $currentOp only reports on operations/idle connections/idle cursors/idle sessions belonging to the user who ran the command.
90
126
* If set to true, $currentOp reports operations belonging to all users.
91
-
* Defailts to true.
127
+
* Defaults to true.
92
128
* @param {Array.<string>} nsFilter An optional array of namespace filter. Defaults to [] i.e. to filter.
print("Prints the currently open Change Streams as a JSON string. A JSON string is printed separately on a newline for each open Change Stream. The behaviour of the function can be controlled with the available parameters (see parameter defaults for default behaviour).")
143
+
print("\t See prettyPrintChangeStreamPipeline() to pretty print a change stream pipeline. ")
144
+
print("\t See ChangeStreamsData.help() and ExtendedChangeStreamsData.help() for data outputted in extended and non-extended mode.")
145
+
print("\t @param extended — Controls whether a simple or extended output is presented. Refer to ExtendedChangeStreamsData. Defaults to false.")
146
+
print("\t @param allUsers — Boolean that correspond's to the allUsers flag of the $currentOp MongoDB Pipeline Stage i.e. If set to false, $currentOp only reports on operations/idle connections/idle cursors/idle sessions belonging to the user who ran the command. If set to true, $currentOp reports operations belonging to all users. Defaults to true.")
147
+
print("\t @param nsFilter — An optional array of namespace filter. Defaults to [] i.e. to filter.")
148
+
}
149
+
150
+
/**
151
+
* Prints the currently open Change Streams as a JSON string. A JSON string is printed separately on a newline for each open Change Stream. The behaviour of the function can be controlled with the available parameters (see parameter defaults for default behaviour).
152
+
* See prettyPrintChangeStreamPipeline() to pretty print a change stream pipeline.
153
+
* See ChangeStreamsData and ExtendedChangeStreamsData for data outputted in extended and non-extended mode.
154
+
* @param {boolean} extended Controls whether a simple or extended output is presented. Refer to ExtendedChangeStreamsData. Defaults to false.
155
+
* @param {boolean} allUsers Boolean that correspond's to the allUsers flag of the $currentOp MongoDB Pipeline Stage i.e.
156
+
* If set to false, $currentOp only reports on operations/idle connections/idle cursors/idle sessions belonging to the user who ran the command.
157
+
* If set to true, $currentOp reports operations belonging to all users.
158
+
* Defaults to true.
159
+
* @param {Array.<string>} nsFilter An optional array of namespace filter. Defaults to [] i.e. to filter.
print("Prints the currently open Change Streams as a CSV string with \""+DEFAULT_DELIMITER+"\" as the default delimeter. A string is printed separately on a newline for each open Change Stream. The behaviour of the function can be controlled with the available parameters (see parameter defaults for default behaviour). ")
168
+
print("\t See prettyPrintChangeStreamPipeline() to pretty print a change stream pipeline. ")
169
+
print("\t See ChangeStreamsData.help() and ExtendedChangeStreamsData.help() for data outputted in extended and non-extended mode.")
170
+
print("\t @param extended — Controls whether a simple or extended output is presented. Refer to ExtendedChangeStreamsData. Defaults to false.")
171
+
print("\t @param delimiter — Provide a custom delimeter for the CSV string. Defaults to \""+DEFAULT_DELIMITER+"\"")
172
+
print("\t @param allUsers — Boolean that correspond's to the allUsers flag of the $currentOp MongoDB Pipeline Stage i.e. If set to false, $currentOp only reports on operations/idle connections/idle cursors/idle sessions belonging to the user who ran the command. If set to true, $currentOp reports operations belonging to all users. Defaults to true.")
173
+
print("\t @param nsFilter — An optional array of namespace filter. Defaults to [] i.e. to filter.")
174
+
}
175
+
/**
176
+
* Prints the currently open Change Streams as a CSV string with "||||" as the default delimeter. A string is printed separately on a newline for each open Change Stream. The behaviour of the function can be controlled with the available parameters (see parameter defaults for default behaviour).
177
+
* See prettyPrintChangeStreamPipeline() to pretty print a change stream pipeline.
178
+
* See ChangeStreamsData and ExtendedChangeStreamsData for data outputted in extended and non-extended mode.
179
+
* @param {boolean} extended Controls whether a simple or extended output is presented. Refer to ExtendedChangeStreamsData. Defaults to false.
180
+
* @param {string} delimiter Provide a custom delimeter for the CSV string
181
+
* @param {boolean} allUsers Boolean that correspond's to the allUsers flag of the $currentOp MongoDB Pipeline Stage i.e.
182
+
* If set to false, $currentOp only reports on operations/idle connections/idle cursors/idle sessions belonging to the user who ran the command.
183
+
* If set to true, $currentOp reports operations belonging to all users.
184
+
* Defaults to true.
185
+
* @param {Array.<string>} nsFilter An optional array of namespace filter. Defaults to [] i.e. to filter.
* @class Contains the data that will be presented in tabular format. This is the basic data set - @see {ExtendedChangeStreamsData} for the extended version.
99
193
* @param {*} connId An identifier for the connection where the specific operation originated.
0 commit comments