public function getConnectionRef( $i, $groups = [], $domain = false, $flags = 0 ): IDatabase {
        if ( self::fieldHasBit( $flags, self::CONN_SILENCE_ERRORS ) ) {
            throw new UnexpectedValueException(
                __METHOD__ . ' got CONN_SILENCE_ERRORS; connection is already deferred'
            );