mirror of
https://github.com/lingble/clickhouse.git
synced 2025-11-27 08:13:50 +00:00
Update README.md
This commit is contained in:
22
README.md
22
README.md
@@ -12,6 +12,28 @@ Example:
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const { ClickHouse } = require('clickhouse');
|
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
|
```javascript
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "clickhouse",
|
"name": "clickhouse",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/TimonKK/clickhouse.git"
|
"url": "https://github.com/TimonKK/clickhouse.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user