ResolvedOdbcUsageProfile class final
Effective profile configuration used by high-level Dart composition helpers.
This value object resolves one OdbcUsageProfile into the async worker shape, connection defaults, pool defaults, and suggested pool size that the package should expose to consumers.
- Annotations
-
- @immutable
Constructors
- ResolvedOdbcUsageProfile({required OdbcUsageProfile profile, required bool useAsync, required int workerCount, required int? maxPendingRequests, required AsyncBackpressureMode backpressureMode, required Duration? backpressureTimeout, required ConnectionOptions connectionOptions, required PoolOptions poolOptions, required int recommendedPoolMaxSize, required ResultEncoding recommendedResultEncoding, required int recommendedStreamChunkSizeBytes})
-
const
- ResolvedOdbcUsageProfile.fromUsageProfile(OdbcUsageProfile profile)
-
factory
Properties
- backpressureMode → AsyncBackpressureMode
-
Backpressure policy when the pending-request cap is reached.
final
- backpressureTimeout → Duration?
-
Optional time bound for
waitForSlotbackpressure.final - connectionOptions → ConnectionOptions
-
Connection defaults aligned with this profile.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxPendingRequests → int?
-
Optional queue cap for pending async requests.
final
- poolOptions → PoolOptions
-
Pool defaults aligned with this profile.
final
- profile → OdbcUsageProfile
-
Preset selected by the caller.
final
- recommendedPoolMaxSize → int
-
Suggested
poolCreate(..., maxSize)value for this profile.final - recommendedResultEncoding → ResultEncoding
-
Suggested ResultEncoding for columnar-typed SELECT workloads.
final
- recommendedStreamChunkSizeBytes → int
-
Suggested
streamQuery*(chunkSize:)for large scans on this profile. Server presets use 1 MiB; others keep 64 KiB. Public API defaults stay at 64 KiB — pass this value explicitly when using recommended options.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useAsync → bool
-
Whether async worker isolates should be used.
final
- workerCount → int
-
Number of async worker isolates to create.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited