drift/examples
Simon Binder 220c7125a3
Update to lints 3.0.0
2023-11-16 21:25:21 +01:00
..
app Highlight Android workarounds more 2023-10-24 21:14:57 +02:00
encryption Update to lints 3.0.0 2023-11-16 21:25:21 +01:00
flutter_web_worker_example Fix typo in error message of insert col list 2023-10-10 21:59:03 +02:00
migrations_example Update to lints 3.0.0 2023-11-16 21:25:21 +01:00
modular Update to lints 3.0.0 2023-11-16 21:25:21 +01:00
web_worker_example Update to lints 3.0.0 2023-11-16 21:25:21 +01:00
with_built_value Apply options in built value example 2023-10-04 15:36:03 +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.