- Add the
unique()
method to columns and theuniqueKeys
override to define unique constraints in Dart tables. - Add the
check()
method to the Dart column builder to generateCHECK
column constraints. - Also apply type converters for json serialization and deserialization if they mix in
JsonTypeConverter
. - Add the very experimental
package:drift/wasm.dart
library. It uses WebAssembly to access sqlite3 without any external JavaScript libraries, but requires you to add a WebAssembly module to theweb/
folder.
Please note that this specific library is not subject to semantic versioning until it leaves its experimental state. It also isn't suitable for production use at the moment. - Internally use
package:js
to wrap sql.js.