OpenDynamicLibrary class final
Manages functions that define how to load the DynamicLibrary for sqlite.
The default behavior will use DynamicLibrary.open('libsqlite3.so')
on
Linux and Android, DynamicLibrary.open('libsqlite3.dylib')
on iOS and
macOS and DynamicLibrary.open('sqlite3.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
-
openSqlite(
) → DynamicLibrary -
Opens the DynamicLibrary from which
moor_ffi
is going to DynamicLibrary.lookup sqlite's methods that will be used. This method is meant to be called bymoor_ffi
only. -
overrideFor(
OperatingSystem os, OpenLibrary open) → void -
Makes
moor_ffi
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
moor_ffi
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