TSL_SessionClose function
The TSL_SessionClose function closes the current database session.
Syntax
TSL_SessionClose(
handle lvarchar)
returns int
- handle
- The table and column name combination returned by the TSL_Attach or the TSL_Init function.
Usage
Use the TSL_SessionClose function to close the current database session. The TSL_SessionClose function does not affect the global context. Call the TSL_Flush function to flush data to disk before calling the TSL_SessionClose function.
Returns
- 0 = The session was closed.
- 1 = An error occurred.
Example
The following statement closes a database session for the table ts_data and the TimeSeries column raw_reads:
EXECUTE FUNCTION TSL_SessionClose('ts_data|raw_reads');