SentryBatch class

A Batch wrapper that adds Sentry support.

import 'package:sqflite/sqflite.dart';
import 'package:sentry_sqflite/sentry_sqflite.dart';

final database = await openDatabase('path/to/db');
final sentryDatabase = SentryDatabase(database);
final batch = sentryDatabase.batch();

Constructors

SentryBatch(Batch _batch, {@internal Hub? hub, @internal String? dbName})
import 'package:sqflite/sqflite.dart'; import 'package:sentry_sqflite/sentry_sqflite.dart'; final database = await openDatabase('path/to/db'); final sentryDatabase = SentryDatabase(database); final batch = sentryDatabase.batch();

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → int
Current batch size
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply({bool? noResult, bool? continueOnError}) → Future<List<Object?>>
Runs all statements in this batch non-atomically.
override
delete(String table, {String? where, List<Object?>? whereArgs}) → void
See Database.delete
override
execute(String sql, [List<Object?>? arguments]) → void
See Database.execute;
override
insert(String table, Map<String, Object?> values, {String? nullColumnHack, ConflictAlgorithm? conflictAlgorithm}) → void
See Database.insert
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String table, {bool? distinct, List<String>? columns, String? where, List<Object?>? whereArgs, String? groupBy, String? having, String? orderBy, int? limit, int? offset}) → void
See Database.query;
override
rawDelete(String sql, [List<Object?>? arguments]) → void
See Database.rawDelete
override
rawInsert(String sql, [List<Object?>? arguments]) → void
See Database.rawInsert
override
rawQuery(String sql, [List<Object?>? arguments]) → void
See Database.query;
override
rawUpdate(String sql, [List<Object?>? arguments]) → void
See Database.rawUpdate
override
toString() → String
A string representation of this object.
inherited
update(String table, Map<String, Object?> values, {String? where, List<Object?>? whereArgs, ConflictAlgorithm? conflictAlgorithm}) → void
See Database.update
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited