Skip to content

Commit 50fd654

Browse files
committed
ok
1 parent a0cd466 commit 50fd654

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ClickHouseAPI.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
* - >setServerUrl($url) - set ClickHouse server parameters by url (host, port, etc.)
1212
* - >getQuery($h_query [, $sess]) - send GET request
1313
* - >postQuery($h_query, $post_data [, $sess]) - send POST request
14-
* Sessions functions:
14+
* Special functions:
15+
* - >getVersion() - return version of ClickHouse server (and detect server features)
16+
* - >isSupported(feature-name) - return true or false depending on server features.
17+
* Sessions. Check isSupported('session_id'). Relevant only for new ClickHouse versions.
1518
* - >getSession() - get current session_id from options
1619
* - >setSession([$sess]) - set session_id or generate new session_id
1720
* Options functions:
18-
* - >setOption($key, $value) - set http-option for requests
19-
* - >getOption($key) - get http-option value
21+
* - >setOption($key, $value) - set http-url-option for all next requests
22+
* - >getOption($key) - get current http-option value for specified $key
2023
* - >delOption($key) - delete http-option (same ->setOption($key, null)
2124
*
2225
* PHP Version >= 5.4

0 commit comments

Comments
 (0)