Skip to main content

TrigramExtension

This class is a specialized database migration operation used to enable the pg_trgm extension in a PostgreSQL database. It facilitates the creation of the extension to support trigram matching, which is useful for determining the similarity of alphanumeric text based on shared sequences of three consecutive characters.

Constructor

Signature

def TrigramExtension(
hints: list[str] = None
) - > null

Parameters

NameTypeDescription
hintslist[str] = NoneOptional database hints or comments to include with the extension creation.

Signature

def TrigramExtension(
hints: list = null
) - > null

Parameters

NameTypeDescription
hintslist = nullA list of strings providing additional context or instructions to the database migration engine during the extension creation process.