TrigramSimilarity
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| function | string = SIMILARITY | The database function name used to calculate the similarity between two strings based on their shared trigrams. |
Constructor
Signature
def TrigramSimilarity()
Signature
def TrigramSimilarity(
expression: [Expression](../../../db/models/expressions/expression.md?sid=django_db_models_expressions_expression),
string: str,
**extra: dict
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| expression | [Expression](../../../db/models/expressions/expression.md?sid=django_db_models_expressions_expression) | The database column or expression to compare against the target string |
| string | str | The literal string or expression used as the basis for the similarity comparison |
| **extra | dict | Additional query expressions or metadata to be passed to the underlying database function |