From 6afb796a77339424f3e22bcb81b51c88a18471de Mon Sep 17 00:00:00 2001 From: Andrew Derbitov Date: Wed, 22 Aug 2018 00:29:14 +0300 Subject: [PATCH] Update README.md --- README.md | 22 ++++++++++++++++++++++ package.json | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3241561..a1e5b89 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,28 @@ Example: ```javascript const { ClickHouse } = require('clickhouse'); + +// all options +const clickhouse = new ClickHouse(); +``` +or + +```javascript +// all options +const clickhouse = new ClickHouse({ + url: 'http://localhost', + port: 8123, + debug: false, + user: 'default', + password: '', + basicAuth: null, + isUseGzip: false, + config: { + session_timeout : 60, + output_format_json_quote_64bit_integers : 0, + enable_http_compression : 0 + } +}); ``` ```javascript diff --git a/package.json b/package.json index 3dd35ca..b561f1c 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ } ], "name": "clickhouse", - "version": "1.2.2", + "version": "1.2.3", "repository": { "type": "git", "url": "https://github.com/TimonKK/clickhouse.git"