MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / GetSession

Method GetSession

client/tablesessionpool.go:61–63  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

59// - A usable ITableSession instance for interacting with IoTDB.
60// - An error if a session cannot be acquired.
61func (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.

Calls 1

getTableSessionMethod · 0.80