Add configuration entries for unaccent and similarity functions
issue10851 review370001002
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Add configuration entries for unaccent and similarity functions
|
||||
* Add authentication services
|
||||
* Schedule actions using server timezone
|
||||
* Reset the user sessions less often
|
||||
|
||||
@@ -229,6 +229,20 @@ maxconn
|
||||
The maximum number of simultaneous connections to the database per process.
|
||||
Default: ``64``
|
||||
|
||||
unaccent_function
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
The name of the unaccent function.
|
||||
|
||||
Default: ``unaccent``
|
||||
|
||||
similarity_function
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The name of the similarity function.
|
||||
|
||||
Default: ``similarity``
|
||||
|
||||
request
|
||||
-------
|
||||
|
||||
|
||||
@@ -76,12 +76,13 @@ class ForSkipLocked(For):
|
||||
|
||||
class Unaccent(Function):
|
||||
__slots__ = ()
|
||||
_function = 'unaccent'
|
||||
_function = config.get('database', 'unaccent_function', default='unaccent')
|
||||
|
||||
|
||||
class Similarity(Function):
|
||||
__slots__ = ()
|
||||
_function = 'similarity'
|
||||
_function = config.get(
|
||||
'database', 'similarity_function', default='similarity')
|
||||
|
||||
|
||||
class Match(BinaryOperator):
|
||||
|
||||
Reference in New Issue
Block a user