OpenDynamicLibrary class
Manages functions that define how to load the DynamicLibrary for DuckDB.
The default behavior will use DynamicLibrary.open('libduckdb.so')
on
Linux and Android, DynamicLibrary.open('libduckdb.dylib')
on iOS and
macOS and DynamicLibrary.open('duckdb.dll')
on Windows.
The default behavior can be overridden for a specific OS by using overrideFor. To override the behavior on all platforms, use overrideForAll.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- os → OperatingSystem?
-
Returns the current OperatingSystem as read from the Platform getters.
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
-
openDuckDB(
) → DynamicLibrary -
Opens the DynamicLibrary from which
duckdb.dart
is going to DynamicLibrary.lookup duckdb's methods that will be used. This method is meant to be called byduckdb.dart
only. -
overrideFor(
OperatingSystem os, OpenLibrary open) → void -
Makes
duckdb.dart
use theopen
function when running on the specifiedos
. This can be used to override the loading behavior on some platforms. To override that behavior on all platforms, consider using overrideForAll. This method must be called before opening any database. -
overrideForAll(
OpenLibrary open) → void -
Makes
duckdb.dart
use the OpenLibrary function for all Dart platforms. If this method has been called, it takes precedence over overrideFor. This method must be called before opening any database. -
reset(
) → void - Clears all associated open helpers for all platforms.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited