drift/examples
Simon Binder 17b1738819 Add macOS target to example app 2023-09-07 15:20:10 +02:00
..
app Add macOS target to example app 2023-09-07 15:20:10 +02:00
encryption Allow latest sqlite3 in encryption sample 2023-06-04 22:11:56 +02:00
flutter_web_worker_example Migrate mentions of `flutter pub run` 2023-06-19 16:09:47 +02:00
migrations_example Fix example builds 2023-08-31 11:17:17 +02:00
modular Add import references to generated insertable 2023-08-13 18:59:31 +02:00
web_worker_example
with_built_value Fix example builds 2023-08-31 11:17:17 +02:00
README.md Update web docs 2023-06-17 22:14:59 +02:00

README.md

Examples using drift

This collection of examples demonstrates how to use some advanced drift features.

  • app: A cross-platform Flutter app built with recommended drift options.
  • encryption: A very simple Flutter app running an encrypted drift database.
  • migrations_example: Example showing to how to generate test utilities to verify schema migration.
  • modular: Example using drift's upcoming modular generation mode.
  • with_built_value: Configure build_runner so that drift-generated classes can be used by build_runner.

These two examples exist to highlight a feature of package:drift/web.dart and package:drift/web/workers.dart. However, the setup shown here is now a core drift feature thanks to WasmDatabase.open, which means that this is no longer needed:

  • flutter_web_worker_example: Asynchronously run a drift database through a web worker with Flutter.
  • web_worker_example: Asynchronously run a drift database through a web worker, without Flutter.