infrastructure/native/bindings/library_loader library

Functions

chooseLocalOrCachedLibraryPath({required String? localPath, required String? cachedPath, bool preferLocal = false, DateTime modifiedAt(String path)?}) → String?
Picks between local and cached paths using the same policy as lib/src/native_assets/native_library_resolver.dart chooseLocalOrCached.
findFirstExistingOdbcEnginePath({required String cwd, String? packageRoot}) → String?
First existing local release path: cwd before packageRoot, workspace before crate-local. Does not consult Native Assets or PATH.
findOdbcPackageRoot() → String?
Walks upward from Directory.current until pubspec.yaml is found.
loadOdbcLibrary() → DynamicLibrary
Returns the loaded DynamicLibrary instance.
loadOdbcLibraryFromAssets() → DynamicLibrary?
Attempts to load the ODBC engine library from application assets.
loadOdbcLibraryFromPath(String path) → DynamicLibrary
Loads the ODBC engine library from a specific file path.
odbcEngineCachedLibraryPath({required String libName, String? packageRoot, Map<String, String>? environment}) → String?
Hook cache path for the current host (x64 Windows/Linux only).
odbcEngineLibraryFileName() → String
Platform-specific ODBC engine file name (odbc_engine.dll / libodbc_engine.so).
odbcEngineLocalReleasePaths(String root) → List<String>
Workspace then crate-local release paths under root.
preferLocalOdbcEngineBuild([Map<String, String>? environment]) → bool
When true, a local release artifact wins over cache even if older.
resolvePreferredOdbcEngineFilePath({required String cwd, String? packageRoot, Map<String, String>? environment, DateTime modifiedAt(String path)?}) → String?
Resolves the preferred on-disk library path before Native Assets / PATH.
tryLoadOdbcEngineFromProjectRoot(String root) → DynamicLibrary?
Tries dev release paths under root without falling back to system PATH.