

def _drop_table(self, model_class, fail_silently=False, cascade=False):
    statement = ('DROP TABLE IF EXISTS' if fail_silently else 'DROP TABLE')
    ddl = [SQL(statement), model_class.as_entity()]
    if cascade:
        ddl.append(SQL('CASCADE'))
    return Clause(*ddl)

dataset/ETHPy150Open coleifer/peewee/peewee.py QueryCompiler._drop_table/original