SQLite#create_function

This gives access to the underlying driver's method of the same name and similar signature.