GetSession acquires an ITableSession instance from the pool. Returns: - A usable ITableSession instance for interacting with IoTDB. - An error if a session cannot be acquired.
()
| 59 | // - A usable ITableSession instance for interacting with IoTDB. |
| 60 | // - An error if a session cannot be acquired. |
| 61 | func (spool *TableSessionPool) GetSession() (ITableSession, error) { |
| 62 | return spool.sessionPool.getTableSession() |
| 63 | } |
| 64 | |
| 65 | // Close closes the TableSessionPool, releasing all held resources. |
| 66 | // Once closed, no further sessions can be acquired from the pool. |