drift.web library Null safety

A version of drift that runs on the web by using sql.js You manually need to include that library into your website to use the web version of drift. See the documentation for a more detailed instruction.

Classes

DriftWebStorage
Interface to control how drift should store data on the web.
WebDatabase
Experimental drift backend for the web. To use this platform, you need to include the latest version of sql.js in your html.

Extensions

PortToChannel
Extension to transform a raw MessagePort from web workers into a Dart StreamChannel.

Typedefs

CreateWebDatabase = Future<Uint8List> Function()
Signature of a function that asynchronously initializes a web database if it doesn't exist. The bytes returned should represent a valid sqlite3 database file.