Apple is known for having the best and most suitable cables for your devices. This Apple lightning to USB-A cable is 2 meters long which is perfect for you.
It connects to your devices like iPad, iPhone and iPod using a lightning connector to your computer. It is used to sync and charge your devices. What you can also do is to connect it to the Apple USB power adapter to charge your Apple device from a wall outlet.