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)
| 49 | // Returns: |
| 50 | // - A TableSessionPool instance. |
| 51 | func 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 | // |
searching dependent graphs…