After T343718: Drop old columns of externallinks it is no longer easy to just build the links in SQL.
Available columns are:
el_id | el_from | el_to_domain_index | el_to_path
el_to_domain_index contains the domain reversed, as in http://org.wikimedia.commons.
Goal: create a function we could install in the cloud db servers which is able to convert el_to_domain_index into a form that could be CONCAT() to el_to_path producing a url just with SQL, without needing to do that part in code.
This might be done as a stored function, with a loop in PL/SQL, or as a User-Defined function in C/C++
The PHP version of this is in includes/ExternalLinks/LinkFilter.php