Class PGSqlSemnatics (0.4.1)

PGSqlSemnatics()

Implementation of dialect semantics for PostgreSQL.

Methods

getDistanceFunction

getDistanceFunction(distance_strategy=DistanceStrategy.EUCLIDEIAN) -> str

Abstract method to get the distance function based on the provided distance strategy.

Parameters:

  • distance_strategy (DistanceStrategy): The distance calculation strategy. Defaults to DistanceStrategy.EUCLIDEAN.

Returns:

  • str: The name of the distance function.