Skip to content

Commit f9b58a4

Browse files
committed
improved js doc
1 parent 97066b4 commit f9b58a4

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

src/buffer/base.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ abstract class SenderBufferBase implements SenderBuffer {
151151
}
152152

153153
/**
154-
* Writes a symbol name and value into the buffer.
154+
* Writes a symbol name and value into the buffer. <br>
155+
* Use it to insert into SYMBOL columns.
155156
*
156157
* @param {string} name - Symbol name.
157158
* @param {unknown} value - Symbol value, toString() is called to extract the actual symbol value from the parameter.
@@ -178,7 +179,8 @@ abstract class SenderBufferBase implements SenderBuffer {
178179
}
179180

180181
/**
181-
* Writes a string column with its value into the buffer.
182+
* Writes a string column with its value into the buffer. <br>
183+
* Use it to insert into VARCHAR and STRING columns.
182184
*
183185
* @param {string} name - Column name.
184186
* @param {string} value - Column value, accepts only string values.
@@ -200,7 +202,8 @@ abstract class SenderBufferBase implements SenderBuffer {
200202
}
201203

202204
/**
203-
* Writes a boolean column with its value into the buffer.
205+
* Writes a boolean column with its value into the buffer. <br>
206+
* Use it to insert into BOOLEAN columns.
204207
*
205208
* @param {string} name - Column name.
206209
* @param {boolean} value - Column value, accepts only boolean values.
@@ -220,7 +223,8 @@ abstract class SenderBufferBase implements SenderBuffer {
220223
}
221224

222225
/**
223-
* Writes a float column with its value into the buffer.
226+
* Writes a 64-bit floating point value into the buffer. <br>
227+
* Use it to insert into DOUBLE or FLOAT database columns.
224228
*
225229
* @param {string} name - Column name.
226230
* @param {number} value - Column value, accepts only number values.
@@ -229,7 +233,8 @@ abstract class SenderBufferBase implements SenderBuffer {
229233
abstract floatColumn(name: string, value: number): SenderBuffer;
230234

231235
/**
232-
* Writes an integer column with its value into the buffer.
236+
* Writes a 64-bit signed integer into the buffer. <br>
237+
* Use it to insert into LONG, INT, SHORT and BYTE columns.
233238
*
234239
* @param {string} name - Column name.
235240
* @param {number} value - Column value, accepts only number values.
@@ -250,7 +255,8 @@ abstract class SenderBufferBase implements SenderBuffer {
250255
}
251256

252257
/**
253-
* Writes a timestamp column with its value into the buffer.
258+
* Writes a timestamp column with its value into the buffer. <br>
259+
* Use it to insert into TIMESTAMP columns.
254260
*
255261
* @param {string} name - Column name.
256262
* @param {number | bigint} value - Epoch timestamp, accepts numbers or BigInts.

src/buffer/bufferv1.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class SenderBufferV1 extends SenderBufferBase {
1313
}
1414

1515
/**
16-
* Writes a float column with its value into the buffer using v1 serialization (text format).
16+
* Writes a 64-bit floating point value into the buffer using v1 serialization (text format). <br>
17+
* Use it to insert into DOUBLE or FLOAT database columns.
1718
*
1819
* @param {string} name - Column name.
1920
* @param {number} value - Column value, accepts only number values.

src/buffer/bufferv2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class SenderBufferV2 extends SenderBufferBase {
1616
}
1717

1818
/**
19-
* Writes a float column with its value into the buffer using v2 serialization (binary format).
19+
* Writes a 64-bit floating point value into the buffer using v2 serialization (binary format). <br>
20+
* Use it to insert into DOUBLE or FLOAT database columns.
2021
*
2122
* @param {string} name - Column name.
2223
* @param {number} value - Column value, accepts only number values.

0 commit comments

Comments
 (0)