Isar class abstract
An instance of the Isar Database.
Properties
Methods
-
attachCollections(
Map< String, IsarCollection> collections) → void -
close(
) → Future - Releases an Isar instance.
-
getCollection<
T> (String name) → IsarCollection< T> - Get a collection by its name.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
txn<
T> (Future< T> callback(Isar isar)) → Future<T> - Executes an asynchronous read-only transaction.
-
txnSync<
T> (T callback(Isar isar)) → T - Executes a synchronous read-only transaction.
-
writeTxn<
T> (Future< T> callback(Isar isar), {bool silent = false}) → Future<T> - Executes an asynchronous read-write transaction.
-
writeTxnSync<
T> (T callback(Isar isar), {bool silent = false}) → T - Executes a synchronous read-write transaction.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
instanceNames
→ List<
String> -
A list of all opened Isar instances
no setter
- schema → String?
-
no setter
Static Methods
-
addCloseListener(
IsarCloseCallback callback) → void - Registers a listener that is called whenever an Isar instance is released.
-
addOpenListener(
IsarOpenCallback callback) → void - Registers a listener that is called whenever an Isar instance is opened.
-
getInstance(
String name) → Isar? -
Returns an opened Isar instance by its name or
null
. -
open(
{required List< CollectionSchema> schemas, required String directory, String name = 'isar', bool relaxedDurability = true}) → Future<Isar> -
removeCloseListener(
IsarCloseCallback callback) → void -
Removes a previously registered
IsarOpenCallback
. -
removeOpenListener(
IsarOpenCallback callback) → void -
Removes a previously registered
IsarOpenCallback
. -
splitWords(
String input) → List< String>