@@ -120,7 +120,7 @@ HomeModules diff --git a/docs/src_sender.js.html b/docs/src_sender.js.html index f0a86a7..8454273 100644 --- a/docs/src_sender.js.html +++ b/docs/src_sender.js.html @@ -547,7 +547,7 @@ HomeModules diff --git a/package-lock.json b/package-lock.json index e8470c7..0dc1a93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@questdb/nodejs-client", - "version": "1.0.4", + "version": "1.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@questdb/nodejs-client", - "version": "1.0.4", + "version": "1.0.5", "license": "Apache-2.0", "devDependencies": { "eslint": "^8.21.0", diff --git a/package.json b/package.json index f7fa419..cd03e3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@questdb/nodejs-client", - "version": "1.0.4", + "version": "1.0.5", "description": "QuestDB Node.js Client", "main": "index.js", "types": "types/index.d.ts", diff --git a/src/validation.js b/src/validation.js index c177013..aef799a 100644 --- a/src/validation.js +++ b/src/validation.js @@ -123,7 +123,7 @@ function validateColumnName(name) { * Validates a designated timestamp. The value must contain only digits. * Throws an error if the value is invalid. * - * @param {string | bigint} timestamp - The timestamp name to validate. + * @param {string | bigint} timestamp - The timestamp to validate. */ function validateDesignatedTimestamp(timestamp) { if (typeof timestamp === "string") { diff --git a/types/src/sender.d.ts b/types/src/sender.d.ts index 40c5579..c7cd5e7 100644 --- a/types/src/sender.d.ts +++ b/types/src/sender.d.ts @@ -150,16 +150,16 @@ export class Sender { * Write a timestamp column with its value into the buffer of the sender. * * @param {string} name - Column name. - * @param {number} value - Column value, accepts only number objects. + * @param {number | bigint} value - Epoch timestamp in microseconds, accepts only numbers or BigInts. * @return {Sender} Returns with a reference to this sender. */ - timestampColumn(name: string, value: number): Sender; + timestampColumn(name: string, value: number | bigint): Sender; /** * Closing the row after writing the designated timestamp into the buffer of the sender. * - * @param {string} timestamp - A string represents the designated timestamp in nanoseconds. + * @param {string | bigint} timestamp - A string or BigInt that represents the designated timestamp in epoch nanoseconds. */ - at(timestamp: string): void; + at(timestamp: string | bigint): void; /** * Closing the row without writing designated timestamp into the buffer of the sender. * Designated timestamp will be populated by the server on this record. diff --git a/types/src/sender.d.ts.map b/types/src/sender.d.ts.map index d3e667d..bdde905 100644 --- a/types/src/sender.d.ts.map +++ b/types/src/sender.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"sender.d.ts","sourceRoot":"","sources":["../../src/sender.js"],"names":[],"mappings":";;;AAWA;;;;;;;;;;;;GAYG;AACH;IAeI;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,sBApBW,MAAM,EAmChB;IAnDD,eAAe,CAAC,YAAI;IACpB,eAAe,CAAC,eAAO;IACvB,eAAe,CAAC,mBAAW;IAC3B,eAAe,CAAC,eAAO;IACvB,eAAe,CAAC,iBAAS;IACzB,eAAe,CAAC,kBAAU;IAC1B,eAAe,CAAC,iBAAS;IACzB,eAAe,CAAC,qBAAa;IAC7B,eAAe,CAAC,iBAAS;IACzB,eAAe,CAAC,mBAAW;IAC3B,eAAe,CAAC,mBAAW;IAC3B,eAAe,CAAC,YAAI;IA0CpB;;;;;;OAMG;IACH,mBAFW,MAAM,QAShB;IAED;;;;;OAKG;IACH,SAFY,MAAM,CAMjB;IAED;;;;;;;OAOG;IACH,iBALW,IAAI,cAAc,GAAG,IAAI,iBAAiB,WAC1C,OAAO,GAEN,QAAQ,OAAO,CAAC,CAoD3B;IAED;;;OAGG;IACH,uBAKC;IAED;;;;;OAKG;IACH,SAFY,QAAQ,OAAO,CAAC,CAY3B;IAED;;;;OAIG;IACH,yBAHY,MAAM,CAOjB;IAED;;;;OAIG;IACH,wBAHY,MAAM,CAWjB;IAED;;;;;OAKG;IACH,aAHW,MAAM,GACL,MAAM,CAcjB;IAED;;;;;;OAMG;IACH,aAJW,MAAM,SACN,GAAG,GACF,MAAM,CAkBjB;IAED;;;;;;OAMG;IACH,mBAJW,MAAM,SACN,MAAM,GACL,MAAM,CAUjB;IAED;;;;;;OAMG;IACH,oBAJW,MAAM,SACN,OAAO,GACN,MAAM,CAQjB;IAED;;;;;;OAMG;IACH,kBAJW,MAAM,SACN,MAAM,GACL,MAAM,CASjB;IAED;;;;;;OAMG;IACH,gBAJW,MAAM,SACN,MAAM,GACL,MAAM,CAajB;IAED;;;;;;OAMG;IACH,sBAJW,MAAM,SACN,MAAM,GACL,MAAM,CAajB;IAED;;;;OAIG;IACH,cAFW,MAAM,QAehB;IAED;;;OAGG;IACH,cAOC;CACJ;AA1XD,uCAAiC"} \ No newline at end of file +{"version":3,"file":"sender.d.ts","sourceRoot":"","sources":["../../src/sender.js"],"names":[],"mappings":";;;AAWA;;;;;;;;;;;;GAYG;AACH;IAeI;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,sBApBW,MAAM,EAmChB;IAnDD,eAAe,CAAC,YAAI;IACpB,eAAe,CAAC,eAAO;IACvB,eAAe,CAAC,mBAAW;IAC3B,eAAe,CAAC,eAAO;IACvB,eAAe,CAAC,iBAAS;IACzB,eAAe,CAAC,kBAAU;IAC1B,eAAe,CAAC,iBAAS;IACzB,eAAe,CAAC,qBAAa;IAC7B,eAAe,CAAC,iBAAS;IACzB,eAAe,CAAC,mBAAW;IAC3B,eAAe,CAAC,mBAAW;IAC3B,eAAe,CAAC,YAAI;IA0CpB;;;;;;OAMG;IACH,mBAFW,MAAM,QAShB;IAED;;;;;OAKG;IACH,SAFY,MAAM,CAMjB;IAED;;;;;;;OAOG;IACH,iBALW,IAAI,cAAc,GAAG,IAAI,iBAAiB,WAC1C,OAAO,GAEN,QAAQ,OAAO,CAAC,CAoD3B;IAED;;;OAGG;IACH,uBAKC;IAED;;;;;OAKG;IACH,SAFY,QAAQ,OAAO,CAAC,CAY3B;IAED;;;;OAIG;IACH,yBAHY,MAAM,CAOjB;IAED;;;;OAIG;IACH,wBAHY,MAAM,CAWjB;IAED;;;;;OAKG;IACH,aAHW,MAAM,GACL,MAAM,CAcjB;IAED;;;;;;OAMG;IACH,aAJW,MAAM,SACN,GAAG,GACF,MAAM,CAkBjB;IAED;;;;;;OAMG;IACH,mBAJW,MAAM,SACN,MAAM,GACL,MAAM,CAUjB;IAED;;;;;;OAMG;IACH,oBAJW,MAAM,SACN,OAAO,GACN,MAAM,CAQjB;IAED;;;;;;OAMG;IACH,kBAJW,MAAM,SACN,MAAM,GACL,MAAM,CASjB;IAED;;;;;;OAMG;IACH,gBAJW,MAAM,SACN,MAAM,GACL,MAAM,CAajB;IAED;;;;;;OAMG;IACH,sBAJW,MAAM,SACN,MAAM,GAAG,MAAM,GACd,MAAM,CAajB;IAED;;;;OAIG;IACH,cAFW,MAAM,GAAG,MAAM,QAgBzB;IAED;;;OAGG;IACH,cAOC;CACJ;AA3XD,uCAAiC"} \ No newline at end of file diff --git a/types/src/validation.d.ts b/types/src/validation.d.ts index c57d8a1..b84b604 100644 --- a/types/src/validation.d.ts +++ b/types/src/validation.d.ts @@ -16,7 +16,7 @@ export function validateColumnName(name: string): void; * Validates a designated timestamp. The value must contain only digits. * Throws an error if the value is invalid. * - * @param {string} timestamp - The table name to validate. + * @param {string | bigint} timestamp - The timestamp to validate. */ -export function validateDesignatedTimestamp(timestamp: string): void; +export function validateDesignatedTimestamp(timestamp: string | bigint): void; //# sourceMappingURL=validation.d.ts.map \ No newline at end of file diff --git a/types/src/validation.d.ts.map b/types/src/validation.d.ts.map index b40e30e..958bf40 100644 --- a/types/src/validation.d.ts.map +++ b/types/src/validation.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/validation.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wCAFW,MAAM,QAyDhB;AAED;;;;;GAKG;AACH,yCAFW,MAAM,QAgDhB;AAED;;;;;GAKG;AACH,uDAFW,MAAM,QAahB"} \ No newline at end of file +{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/validation.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wCAFW,MAAM,QAyDhB;AAED;;;;;GAKG;AACH,yCAFW,MAAM,QAgDhB;AAED;;;;;GAKG;AACH,uDAFW,MAAM,GAAG,MAAM,QAezB"} \ No newline at end of file