An open API service indexing awesome lists of open source software.

https://github.com/utisam/drift_sentry

Sentry integration for the drift (Dart) package.
https://github.com/utisam/drift_sentry

dart drift flutter sentry sentry-integration sqlite3

Last synced: 29 days ago
JSON representation

Sentry integration for the drift (Dart) package.

Awesome Lists containing this project

README

        

# Drift Sentry

> [!NOTE]
> The official package [sentry_drift](https://pub.dev/packages/sentry_drift) has been released.
> Please use this for new projects.

[![CI](https://github.com/utisam/drift_sentry/actions/workflows/ci.yml/badge.svg)](https://github.com/utisam/drift_sentry/actions/workflows/ci.yml)
[![pub package](https://img.shields.io/pub/v/drift_sentry.svg)](https://pub.dev/packages/drift_sentry)

[Sentry](https://sentry.io/) integration for the [drift](https://pub.dev/packages/drift) package.

## Usage

```dart
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();
});
}
```