drift_sentry 1.0.2 copy "drift_sentry: ^1.0.2" to clipboard
drift_sentry: ^1.0.2 copied to clipboard

Sentry integration for the drift package.

Drift Sentry #

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();
  });
}
1
likes
130
pub points
45%
popularity

Publisher

unverified uploader

Sentry integration for the drift package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

drift, meta, mockito, sentry

More

Packages that depend on drift_sentry