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

Function NewTableSessionPool

client/tablesessionpool.go:51–54  ·  view source on GitHub ↗

NewTableSessionPool creates a new TableSessionPool with the specified configuration. Parameters: - conf: PoolConfig defining the configuration for the pool. - maxSize: The maximum number of sessions the pool can hold. - connectionTimeoutInMs: Timeout for establishing a connection in milliseconds. -

(conf *PoolConfig, maxSize, connectionTimeoutInMs, waitToGetSessionTimeoutInMs int,
	enableCompression bool)

Source from the content-addressed store, hash-verified

49// Returns:
50// - A TableSessionPool instance.
51func NewTableSessionPool(conf *PoolConfig, maxSize, connectionTimeoutInMs, waitToGetSessionTimeoutInMs int,
52 enableCompression bool) TableSessionPool {
53 return TableSessionPool{sessionPool: newSessionPoolWithSqlDialect(conf, maxSize, connectionTimeoutInMs, waitToGetSessionTimeoutInMs, enableCompression, TableSqlDialect)}
54}
55
56// GetSession acquires an ITableSession instance from the pool.
57//

Calls 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…