]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/pgfulltext/__init__.py
Suggest enabling of pooled connections by default
[osqa.git] / forum_modules / pgfulltext / __init__.py
1 from forum.base import get_database_engine
2 database_type = get_database_engine()
3
4 NAME = 'Postgresql Full Text Search'
5 DESCRIPTION = "Enables PostgreSql full text search functionality."
6
7 try:
8     import psycopg2
9     CAN_USE = 'postgresql' in database_type
10 except:
11     CAN_USE = False