

def get_tables(self, schema='public'):
    query = 'SELECT tablename FROM pg_catalog.pg_tables WHERE schemaname = %s ORDER BY tablename'
    return [r for (r,) in self.execute_sql(query, (schema,)).fetchall()]

dataset/ETHPy150Open coleifer/peewee/peewee.py PostgresqlDatabase.get_tables/original