It would be useful to have the Replace function, for manipulating strings in queries.
For example, a really basic slugify implementation::
class Venue(Table):
name = Varchar()
>>> await Venue.select(Replace(Venue.name, ' ', '-'))
[{'name': 'Amazing-Venue'}]
It would be useful to have the
Replacefunction, for manipulating strings in queries.For example, a really basic slugify implementation::