harp_apps.storage.optionals.pg_trgm

Inheritance diagram of harp_apps.storage.optionals.pg_trgm

class PgTrgmOptional[source]

Bases: BaseOptional

Installs or uninstalls the required tools for postrges’ trigram based indexes and search.

__init__(db_url)[source]
async install()[source]

Install this optional feature in the database. This will install the pg_trgm extension and create optimized index for search.

async is_supported()[source]

Is this optional supported in the current environment?

async uninstall()[source]

Remove this optional feature from database. Please note that the extension is not uninstalled, as it may have more side effect than we’d like too. Some deeper understanding of what is a PG extension and how scoped there are would be great.

property engine
property url