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
Copy file name to clipboardexpand all lines: docs/Sender.html
+18-15
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,9 @@ <h5>Parameters:</h5>
121
121
<ul>
122
122
<li>bufferSize: <i>number</i> - Size of the buffer used by the sender to collect rows, provided in bytes. <br>
123
123
Optional, defaults to 8192 bytes </li>
124
+
<li>copyBuffer: <i>boolean</i> - If true a new buffer will be created for every flush() call and the data to be sent to the server will be copied into this new buffer. <br>
125
+
Setting the flag could result in performance degradation, use this flag only if calls to the client cannot be serialised. <br>
* <li>bufferSize: <i>number</i> - Size of the buffer used by the sender to collect rows, provided in bytes. <br>
72
74
* Optional, defaults to 8192 bytes </li>
75
+
* <li>copyBuffer: <i>boolean</i> - If true a new buffer will be created for every flush() call and the data to be sent to the server will be copied into this new buffer. <br>
76
+
* Setting the flag could result in performance degradation, use this flag only if calls to the client cannot be serialised. <br>
Copy file name to clipboardexpand all lines: src/sender.js
+30-7
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ class Sender {
27
27
/** @private */socket;
28
28
/** @private */bufferSize;
29
29
/** @private */buffer;
30
+
/** @private */toBuffer;
31
+
/** @private */doResolve;
30
32
/** @private */position;
31
33
/** @private */endOfLastRow;
32
34
/** @private */hasTable;
@@ -42,6 +44,9 @@ class Sender {
42
44
* <ul>
43
45
* <li>bufferSize: <i>number</i> - Size of the buffer used by the sender to collect rows, provided in bytes. <br>
44
46
* Optional, defaults to 8192 bytes </li>
47
+
* <li>copyBuffer: <i>boolean</i> - If true a new buffer will be created for every flush() call and the data to be sent to the server will be copied into this new buffer. <br>
48
+
* Setting the flag could result in performance degradation, use this flag only if calls to the client cannot be serialised. <br>
0 commit comments