ConnectionPoolConfigurationInfo.fromXml constructor

ConnectionPoolConfigurationInfo.fromXml(
  1. XmlElement elem
)

Implementation

factory ConnectionPoolConfigurationInfo.fromXml(_s.XmlElement elem) {
  return ConnectionPoolConfigurationInfo(
    connectionBorrowTimeout:
        _s.extractXmlIntValue(elem, 'ConnectionBorrowTimeout'),
    initQuery: _s.extractXmlStringValue(elem, 'InitQuery'),
    maxConnectionsPercent:
        _s.extractXmlIntValue(elem, 'MaxConnectionsPercent'),
    maxIdleConnectionsPercent:
        _s.extractXmlIntValue(elem, 'MaxIdleConnectionsPercent'),
    sessionPinningFilters: _s
        .extractXmlChild(elem, 'SessionPinningFilters')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
  );
}