Skip to content

Commit 274f25c

Browse files
committed
README about readonly
1 parent 7ffac1b commit 274f25c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ var options = {
8585
profile: "web",
8686
database: "test"
8787
},
88-
omitFormat: false
88+
omitFormat: false,
89+
readonly: true,
8990
};
9091

9192
var clickHouse = new ClickHouse (options);
@@ -127,6 +128,7 @@ Driver options:
127128
which returns dataset. Currently `SELECT|SHOW|DESC|DESCRIBE|EXISTS\s+TABLE`.
128129
You can change this behaviour by providing this option. In this case you should
129130
add `FORMAT JSONCompact` by yourself. Should be detected automatically. Default `false`;
131+
* **readonly**: tells driver to send query with HTTP GET method. Same as [`readonly=1` setting](https://clickhouse.yandex/docs/en/operations/settings/permissions_for_queries/#settings_readonly). [More details](https://clickhouse.yandex/docs/en/interfaces/http/)
130132

131133

132134
### var stream = clickHouse.query (statement, [options], [callback])

0 commit comments

Comments
 (0)