Attention

This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.

harp_apps.sqlalchemy_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