DatabaseConnectionUser.delegate constructor

DatabaseConnectionUser.delegate(
  1. DatabaseConnectionUser other, {
  2. SqlTypeSystem? typeSystem,
  3. QueryExecutor? executor,
  4. StreamQueryStore? streamQueries,
})

Creates another DatabaseConnectionUser by referencing the implementation from the other user.

Implementation

DatabaseConnectionUser.delegate(DatabaseConnectionUser other,
    {SqlTypeSystem? typeSystem,
    QueryExecutor? executor,
    StreamQueryStore? streamQueries})
    : connection = DatabaseConnection(
        typeSystem ?? other.connection.typeSystem,
        executor ?? other.connection.executor,
        streamQueries ?? other.connection.streamQueries,
      );