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

An integration which adds support for performance tracing for the Drift package.

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

Publisher

unverified uploader

An integration which adds support for performance tracing for the Drift package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

drift, meta, sentry

More

Packages that depend on drift_sentry