MySQLPacketSSLRequest.createDefault constructor

MySQLPacketSSLRequest.createDefault({
  1. required MySQLPacketInitialHandshake initialHandshakePayload,
  2. required bool connectWithDB,
})

Implementation

factory MySQLPacketSSLRequest.createDefault({
  required MySQLPacketInitialHandshake initialHandshakePayload,
  required bool connectWithDB,
}) {
  return MySQLPacketSSLRequest._(
    capabilityFlags: _supportedCapabitilies,
    maxPacketSize: 50 * 1024 * 1024,
    characterSet: initialHandshakePayload.charset,
    connectWithDB: connectWithDB,
  );
}