drift/examples
Eli Geller 4e28e5f5b9
remove leading slashes from URI paths
2023-08-14 18:21:09 -04:00
..
app remove leading slashes from URI paths 2023-08-14 18:21:09 -04: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 Re-generate migration code 2023-08-02 18:43:28 +02:00
modular Add import references to generated insertable 2023-08-13 18:59:31 +02:00
web_worker_example Fix web worker example 2023-05-15 21:28:19 +02:00
with_built_value Add rowid parameter to companions 2023-02-19 13:46:58 +01: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.