drift_sentry 1.0.2 drift_sentry: ^1.0.2 copied to clipboard
Sentry integration for the drift package.
Drift Sentry #
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();
});
}