'Whether to instead of LIKE use REGEXP with groups of diacritic
alternatives of characters to enforce accent-insensitive matches
in text search (for SQLite and PostgreSQL, neither of which
applies collation rules in LIKE)
@note: MySQL\'s REGEXP implementation is not multibyte-safe,
so AIRegex is ignored for MySQL.
@note: However, MYSQL\'s LIKE applies collation rules, so
accent-insensitivity can be achieved by settings a
suitable default database collation with:
ALTER DATABASE <dbname> DEFAULT COLLATE <collname>
Caution: this will trigger a rebuilt of all indices, so
on a populated production database this could
take quite a long time (but is needed only once)!
@note: SQLite fails on Windows Python 2.7.10 with current PyDAL
(PR coming for PyDAL)
@note: AIRegex is much less scalable than normal LIKE or even
ILIKE, enable/disable on a case-by-case basis in case
of performance issues (which is also why this is a lazy
setting), or consider switching to MySQL altogether'

def get_database_airegex(self):

    if (self.get_database_type() != 'mysql'):
        airegex = self.__lazy('database', 'airegex', False)
    else:
        airegex = False
    return airegex
