odbc_fast_native library

Opt-in exports for native FFI, repository implementation, and other infrastructure surfaces.

Most consumers should depend on package:odbc_fast/odbc_fast.dart only. Import this library when you need direct access to NativeOdbcConnection, AsyncNativeOdbcConnection, OdbcRepositoryImpl, OpenTelemetry FFI bindings, or OdbcPoolFactory.

Classes

AsyncNativeOdbcConnection
DriverCapabilitiesMapper
Maps native JSON payloads to domain DriverCapabilities and DbmsInfo.
NativeOdbcConnection
Native ODBC connection implementation using FFI bindings.
OdbcDriverFeatureBackend
Backend contract used by OdbcDriverFeatures.
OdbcDriverFeatures
Typed wrapper for the v3.0 capability FFIs.
OdbcMetrics
Performance and operational metrics from the ODBC engine.
OdbcNative
Native ODBC bindings wrapper.
OdbcPoolFactory
Typed wrapper for the v3.0 pool-creation FFI with options support.
OdbcRepositoryImpl
Thin façade over capability-focused runners implementing IOdbcRepository.
OpenTelemetryFFI
OpenTelemetry FFI wrapper backed by the native ODBC engine library.
PoolOptions
Optional eviction/timeout knobs for a connection pool created via odbc_pool_create_with_options (NEW v3.0).
SessionOptions
Per-driver session initialization options. Mirror of the Rust SessionOptions struct — every field is optional; null/empty means "do not touch this setting".
StreamFetchResult
Result of a stream fetch operation.
TelemetryNativeClient
Contract used by telemetry repositories to call native telemetry functions.

Enums

AsyncBackpressureMode
Policy used when the async worker queue reaches its pending-request cap.
AsyncErrorCode
Error codes for async operations that cross isolate boundaries.
DmlVerb
DML category used by OdbcDriverFeatures.appendReturningClause to position the dialect-specific OUTPUT/RETURNING clause.

Functions

createPoolDispatch({required bool supportsPoolCreateWithOptions, required String connectionString, required int maxSize, required int poolCreate(String connectionString, int maxSize), required int poolCreateWithOptions(String connectionString, int maxSize, {String? optionsJson}), PoolOptions? options}) int
Pure routing used by OdbcPoolFactory.createPool, testable without FFI.
fromBytes(Uint8List b) PreparedStatementMetrics
Deserializes PreparedStatementMetrics from binary data.

Exceptions / Errors

AsyncError
Sendable error type that can cross isolate boundaries.