'Get name of jails in database.
Currently only used for testing purposes.
Returns
set
Set of jail names.'

@commitandrollback
def getJailNames(self, cur, enabled=None):

    if (enabled is None):
        cur.execute('SELECT    name    FROM    jails')
    else:
        cur.execute(('SELECT    name    FROM    jails    WHERE    enabled=%s' % (int(enabled),)))
    return set((row[0] for row in cur.fetchmany()))
