Skip to main content

TrigramSimilarity

No overview available.

Attributes

AttributeTypeDescription
functionstring = SIMILARITYThe 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

NameTypeDescription
expression[Expression](../../../db/models/expressions/expression.md?sid=django_db_models_expressions_expression)The database column or expression to compare against the target string
stringstrThe literal string or expression used as the basis for the similarity comparison
**extradictAdditional query expressions or metadata to be passed to the underlying database function