PoolOptions class
Optional eviction/timeout knobs for a connection pool created via
odbc_pool_create_with_options (NEW v3.0).
Mirror of the Rust pool::PoolOptions struct. Every field is null by
default; the native side falls back to the engine defaults
(connection_timeout = 30s, no idle_timeout, no max_lifetime).
Constructors
- PoolOptions({Duration? idleTimeout, Duration? maxLifetime, Duration? connectionTimeout})
-
const
Properties
- connectionTimeout → Duration?
-
Maximum time
acquirewill wait for an available connection.nullfalls back to the engine default (30 s).final - hasAnyOption → bool
-
trueiff at least one option is set.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- idleTimeout → Duration?
-
Connections idle for longer than this are closed by the background
reaper.
nulldisables idle eviction.final - maxLifetime → Duration?
-
A connection is closed when it exceeds this lifetime (checked on return
to the pool).
nulldisables lifetime eviction.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String? -
Encode as the JSON shape expected by
odbc_pool_create_with_options. Returns an empty string when no fields are set (caller may passnullFFI pointer instead, equivalent meaning). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited