DbFactory typedef

DbFactory = FutureOr<Db> Function()

A function that produces an instance of Db, whether synchronously or asynchronously.

This is used in the ConnectionPool class to connect to a database on-the-fly.

Implementation

typedef DbFactory = FutureOr<Db> Function();