Not exactly the kind of answer I expected though (sure, there are ways to code it ourselves), but a SQLIimport handler could be a nice starting point if we don't want to start from scratch.
If anyone knows an existing extension capable of doing this, please let me know!