OdbcUsageProfile enum

Preset tuning for ServiceLocator.initialize and related helpers.

Use OdbcUsageProfile.balanced for a recommended opt-in mix of responsiveness, throughput, and safety. OdbcUsageProfile.legacy preserves the package default behavior (sync-only, single worker, no pool/connection timeouts from presets). Use OdbcUsageProfile.highThroughput for heavier server workloads with more worker isolates and a larger recommended pool size. See ConnectionOptions.fromUsageProfile and PoolOptions.fromUsageProfile.

Inheritance
Available extensions

Values

balanced → const OdbcUsageProfile

Async, two workers, moderate backpressure; recommended general preset.

balancedFlutter → const OdbcUsageProfile

Async, single worker; best when the app mostly uses one connection.

balancedServer → const OdbcUsageProfile

Async, four workers; for services with native pools and concurrency.

highThroughput → const OdbcUsageProfile

Async, six workers; for heavier server workloads with larger pools.

legacy → const OdbcUsageProfile

Historical defaults: sync API, single worker, no preset timeouts/reconnect.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
recommendedPoolMaxSize int
Suggested maxSize for poolCreate when using this profile.
no setter
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<OdbcUsageProfile>
A constant List of the values in this enum, in order of their declaration.