isolate library

Contains utils to run moor databases in a background isolate. This API is not supported on the web.

Classes

DriftIsolate
Defines utilities to run drift in a background isolate. In the operation mode created by these utilities, there's a single background isolate doing all the work. Any other isolate can use the connect method to obtain an instance of a GeneratedDatabase class that will delegate its work onto a background isolate. Auto-updating queries, and transactions work across isolates, and the user facing api is exactly the same.

Typedefs

DatabaseOpener = DatabaseConnection Function()
Signature of a function that opens a database connection.
MoorIsolate = DriftIsolate
Defines utilities to run moor in a background isolate. In the operation mode created by these utilities, there's a single background isolate doing all the work. Any other isolate can use the connect method to obtain an instance of a GeneratedDatabase class that will delegate its work onto a background isolate. Auto-updating queries, and transactions work across isolates, and the user facing api is exactly the same.

Exceptions / Errors

DriftRemoteException
An exception reported on the other end of a drift remote protocol.