clickhouse-ts
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"license": "MIT", | ||
@@ -15,0 +15,0 @@ "description": "Clickhouse client on TypeScript using nodejs ot redis caching queries", |
@@ -93,9 +93,26 @@ # clickhouse-ts | ||
{ | ||
r: 1, | ||
result: { | ||
cached: 2, | ||
chunk: 'strings-1624746778066-4ebdfda07dc6e73a73a3c87490b8ebf0' | ||
cached: 2, | ||
chunk: 'strings-1624746778066-4ebdfda07dc6e73a73a3c87490b8ebf0' | ||
} | ||
*/ | ||
const response = clickhouseInstance | ||
.insert( | ||
'strings', | ||
[{ date: '2021-01-01', string: 'str1' }, { date: '2021-01-02', string: 'str2' }], | ||
{ | ||
responseFormat: 'CSVWithNames' // or another format | ||
// another query options | ||
} | ||
) | ||
.then(response => response) | ||
.catch(e => serializeError(e)) | ||
response | ||
/* | ||
{ | ||
inserted: 2, | ||
data: [...rows] | ||
} | ||
*/ | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66510
117