drift/examples/README.md

18 lines
1.1 KiB
Markdown
Raw Normal View History

2022-04-01 13:11:21 -07:00
## Examples using drift
This collection of examples demonstrates how to use some advanced drift features.
2022-04-02 09:01:10 -07:00
- `app`: A cross-platform Flutter app built with recommended drift options.
2022-08-25 12:15:21 -07:00
- `encryption`: A very simple Flutter app running an encrypted drift database.
2022-04-01 13:11:21 -07:00
- `migrations_example`: Example showing to how to generate test utilities to verify schema migration.
2022-11-20 08:28:27 -08:00
- `modular`: Example using drift's upcoming modular generation mode.
2022-04-01 13:11:21 -07:00
- `with_built_value`: Configure `build_runner` so that drift-generated classes can be used by `build_runner`.
2024-01-30 15:26:36 -08:00
- `multi_package`: This example shows how to share drift definitions between packages.
2023-06-17 13:14:59 -07:00
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.