Closed wbob closed 3 years ago
It's already implemented in math extension.
provide mathematical and string extension functions for SQL queries using the loadable extensions mechanism. Math: acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference, degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth, exp, log, log10, power, sign, sqrt, square, ceil, floor, pi. String: replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim, replace, reverse, proper, padl, padr, padc, strfilter. Aggregate: stdev, variance, mode, median, lower_quartile, upper_quartile.
It's not. math
extension contains only math functions. I don't know the source of your quote, but it's not the docs.
This is an old third-party extension, which has nothing to do with math
extension.
Yeah, I missed that you are using another math extension.
@nalgeon sounds like that reverse would actually be useful to have in the unicode extension since that is dealing with strings in general.
I am working on the text
extension, reverse()
will be there.
thank you! I was pleasantly suprised you included split_part (substring_index for mysqlers) too, an often used function
https://github.com/mayflower/sqlite-reverse-string was useful to me once, it has no dependencies, but could be obsoleted by a library encompassing more string functions