ConnectionSettings.socket constructor

ConnectionSettings.socket({
  1. required String path,
  2. String? user,
  3. String? password,
  4. String? db,
  5. bool useCompression = false,
  6. bool useSSL = false,
  7. int maxPacketSize = 16 * 1024 * 1024,
  8. Duration timeout = const Duration(seconds: 30),
  9. int characterSet = CharacterSet.UTF8MB4,
})

Implementation

factory ConnectionSettings.socket(
        {required String path,
        String? user,
        String? password,
        String? db,
        bool useCompression = false,
        bool useSSL = false,
        int maxPacketSize = 16 * 1024 * 1024,
        Duration timeout = const Duration(seconds: 30),
        int characterSet = CharacterSet.UTF8MB4}) =>
    ConnectionSettings(
        host: path,
        user: user,
        password: password,
        db: db,
        useCompression: useCompression,
        useSSL: useSSL,
        maxPacketSize: maxPacketSize,
        timeout: timeout,
        characterSet: characterSet);