web_db library Null safety

Classes

WebDatabase
Experimental drift backend for the web. To use this platform, you need to include the latest version of sql.js in your html.

Typedefs

CreateWebDatabase = FutureOr 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.
WebSetup = FutureOr<void> Function(SqlJsDatabase database)
Signature of a function that initializes a SqlJsDatabase before its used by drift.