DVAnalyticsDatabaseStore class

The default store: the application's own database.

On SQLite for local development, and on any database adapter for volume — the queries do not change when the adapter does.

Implemented types

Constructors

DVAnalyticsDatabaseStore({required DVDatabaseAdapter database})

Properties

database → DVDatabaseAdapter
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

ensureSchema() → Future<void>
eraseSubject(String subject) → Future<void>
override
events({String? subject}) → Future<List<DVAnalyticsRecord>>
Every stored event, or subject's, in the order they were stored.
exportSubject(String subject) → Future<List<Map<String, Object?>>>
override
funnel(List<String> steps) → Future<List<int>>
How many subjects reached each of steps, each after the one before.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(List<DVAnalyticsRecord> batch) → Future<void>
Delivers batch. A throw leaves the batch queued for the next flush, so a sink should accept a record it already holds without duplicating it.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

table → const String