Skip to content

Sentry integration for the drift (Dart) package.

License

Notifications You must be signed in to change notification settings

utisam/drift_sentry

Repository files navigation

Drift Sentry

Note

The official package sentry_drift has been released. Please use this for new projects.

CI pub package

Sentry integration for the drift package.

Usage

LazyDatabase _openConnection() {
  return LazyDatabase(() async {
    final dbFolder = await getApplicationDocumentsDirectory();
    final file = File(p.join(dbFolder.path, 'db.sqlite'));
    // Use .addSentry() to wrap QueryExecutor
    return NativeDatabase.createInBackground(file).addSentry();
  });
}