def schema_exists(self):
    '\n        \n        Checks the estimated number of tuples in the subjects table to determine if data exists\n        \n        :return: \n        '
    with self.connection.cursor() as cursor:
        cursor.execute('select reltuples FROM pg_class where relname = %s', ('subjects',))
        result = cursor.fetchone()[0]
        return (result > 0)
Checks the estimated number of tuples in the subjects table to determine if data exists

:return:
def schema_exists(self):
    '\n        \n        Checks the estimated number of tuples in the subjects table to determine if data exists\n        \n        :return: \n        '
    with self.connection.cursor() as cursor:
        cursor.execute('select reltuples FROM pg_class where relname = %s', ('subjects',))
        result = cursor.fetchone()[0]
        return (result > 0)