Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension for a specific string function: reverse() #9

Closed
wbob opened this issue Apr 4, 2021 · 9 comments
Closed

extension for a specific string function: reverse() #9

wbob opened this issue Apr 4, 2021 · 9 comments

Comments

@wbob
Copy link

wbob commented Apr 4, 2021

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

@little-brother
Copy link

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.

@nalgeon
Copy link
Owner

nalgeon commented Apr 8, 2021

It's not. math extension contains only math functions. I don't know the source of your quote, but it's not the docs.

@nalgeon
Copy link
Owner

nalgeon commented Apr 8, 2021

This is an old third-party extension, which has nothing to do with math extension.

@little-brother
Copy link

Yeah, I missed that you are using another math extension.

@warmwaffles
Copy link

@nalgeon sounds like that reverse would actually be useful to have in the unicode extension since that is dealing with strings in general.

@nalgeon
Copy link
Owner

nalgeon commented Apr 8, 2021

I am working on the text extension, reverse() will be there.

@nalgeon
Copy link
Owner

nalgeon commented Apr 15, 2021

Done.

@nalgeon nalgeon closed this as completed Apr 15, 2021
@wbob
Copy link
Author

wbob commented Apr 16, 2021

thank you! I was pleasantly suprised you included split_part (substring_index for mysqlers) too, an often used function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants