amplify_db_common_dart 0.4.7 amplify_db_common_dart: ^0.4.7 copied to clipboard
Common utilities for working with databases such as sqlite. Used throughout Amplify packages.
amplify_db_common_dart #
Common utilities for working with databases such as sqlite.
Drift Database Connection #
The top-level connect()
function creates a QueryExecutor on either web or vm platforms.
Use on Web
The web implementation uses package:drift/wasm.dart
. To use this utility in a web app (flutter web, or non-flutter web), sqlite3.wasm
will need to be included manually. For more info, see the drift wasm docs.
Use in Flutter VM
This utility does not depend on Flutter, and can be used in non-flutter apps and packages. To use this package in a flutter app or package, amplify_db_common
will have to be included as a dependency. See its pub.dev listing for more info.