@apla/clickhouse
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "@apla/clickhouse", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Yandex ClickHouse database interface", | ||
"main": "src/clickhouse.js", | ||
"scripts": { | ||
"launch-docker-image": "docker run --rm -d -p 8123:8123 --name clickhouse-server yandex/clickhouse-server", | ||
"stop-docker-image": "docker stop clickhouse-server", | ||
"test": "nyc mocha --recursive ./test -R spec", | ||
@@ -31,3 +33,3 @@ "report": "nyc report --reporter=lcov > coverage.lcov && codecov", | ||
"devDependencies": { | ||
"codecov": "^1.0.1", | ||
"codecov": "^2.2.0", | ||
"memwatch-next": "^0.3.0", | ||
@@ -34,0 +36,0 @@ "mocha": "^2.5.3", |
@@ -10,5 +10,31 @@ var ClickHouse = require ("../src/clickhouse"); | ||
var responses = { | ||
"SELECT 1 FORMAT JSONCompact": {"meta": [{"name": "1", "type": "UInt8"}], "data": [[1]], "rows": 1}, | ||
"SHOW DATABASES FORMAT JSONCompact": {"meta": [{"name": "name", "type": "String"}], "data": [["default"], ["system"]], "rows": 2}, | ||
"SELECT number FROM system.numbers LIMIT 10 FORMAT JSONCompact": {"meta":[{"name":"number","type":"UInt64"}],"data":[["0"],["1"],["2"],["3"],["4"],["5"],["6"],["7"],["8"],["9"]],"rows":10,"rows_before_limit_at_least":10}, | ||
"SELECT 1 FORMAT JSONCompact": { | ||
"meta": [ | ||
{"name": "1", "type": "UInt8"} | ||
], | ||
"data": [ | ||
[1] | ||
], | ||
"rows": 1 | ||
}, | ||
"SHOW DATABASES FORMAT JSONCompact": { | ||
"meta": [ | ||
{"name": "name", "type": "String"} | ||
], | ||
"data": [ | ||
["default"], | ||
["system"] | ||
], | ||
"rows": 2 | ||
}, | ||
"SELECT number FROM system.numbers LIMIT 10 FORMAT JSONCompact": { | ||
"meta": [ | ||
{"name":"number","type":"UInt64"} | ||
], | ||
"data": [ | ||
["0"],["1"],["2"],["3"],["4"],["5"],["6"],["7"],["8"],["9"] | ||
], | ||
"rows": 10, | ||
"rows_before_limit_at_least": 10 | ||
}, | ||
@@ -15,0 +41,0 @@ }; |
@@ -20,3 +20,3 @@ var ClickHouse = require ("../src/clickhouse"); | ||
assert (!err); | ||
assert (ok === "Ok.\n", "ping response should be 'Ok.\\n'"); | ||
assert.equal (ok, "Ok.\n", "ping response should be 'Ok.\\n'"); | ||
done (); | ||
@@ -23,0 +23,0 @@ }); |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36032
814
4