Skip to main content

Get session settings

Forms the session settings structure for executing the request

Function GetSessionSettings(Val SessionID = Undefined, Val CheckSession = Undefined, Val Timeout = 60) Export

ParameterCLI optionTypeRequiredDescription
SessionID--idStringSession ID. A new unique identifier if not specified (a new session will be created)
CheckSession--checkBooleanCheck for session existence. True when ID is specified and false when not, unless otherwise specified
Timeout--timeoutNumberSession lifetime in seconds
Returns

Structure Of KeyAndValue - Session settings structure

1C:Enterprise/OneScript code example
SessionID = String(New UUID);
Check = True;
Timeout = 120;

Result = OPI_ClickHouse.GetSessionSettings(SessionID, Check, Timeout);
oint clickhouse GetSessionSettings \
--id "69fdbff1-22a8-4e1e-9100-22b860cde0e8" \
--check true \
--timeout 120
Result
{
"id": "69fdbff1-22a8-4e1e-9100-22b860cde0e8",
"check": true,
"timeout": 120
}