Get session settings
Forms the session settings structure for executing the request
- Parameters
- Advanced call ?
Function GetSessionSettings(Val SessionID = Undefined, Val CheckSession = Undefined, Val Timeout = 60) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| SessionID | --id | String | ✖ | Session ID. A new unique identifier if not specified (a new session will be created) |
| CheckSession | --check | Boolean | ✖ | Check for session existence. True when ID is specified and false when not, unless otherwise specified |
| Timeout | --timeout | Number | ✖ | Session lifetime in seconds |
Returns
Structure Of KeyAndValue - Session settings structure
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
SessionID = String(New UUID);
Check = True;
Timeout = 120;
Result = OPI_ClickHouse.GetSessionSettings(SessionID, Check, Timeout);
- Bash
- CMD/Bat
oint clickhouse GetSessionSettings \
--id "69fdbff1-22a8-4e1e-9100-22b860cde0e8" \
--check true \
--timeout 120
oint clickhouse GetSessionSettings ^
--id "69fdbff1-22a8-4e1e-9100-22b860cde0e8" ^
--check true ^
--timeout 120
Result
{
"id": "69fdbff1-22a8-4e1e-9100-22b860cde0e8",
"check": true,
"timeout": 120
}