DatabaseInterceptor typedef

DatabaseInterceptor = Database Function(Session session, Database inner)

Replaces the default Database for a Session.

The inner database is the framework-provided instance. Return a custom Database implementation to layer behavior on top of it.

Implementation

typedef DatabaseInterceptor =
    Database Function(
      Session session,
      Database inner,
    );