A solar pump inverter is specifically designed for running water pumps with solar panel energy. It has special controls to vary the motor speed according to the available sunlight, and also has other protections like dry-run prevention and soft start.
[pdf] The short answer is no—solar inverters do not produce or convert energy at night because they rely on sunlight to generate electricity. Solar inverters are designed to convert the DC electricity from solar panels into AC power during daylight hours when sunlight is available.
[pdf] You could connect a solar panel directly to a water pump. It is not a good idea, though. The erratic pulse of electricity produced by the solar panel will burn out the pump at some point. That process can take.
[pdf]