示例#1
0
文件: fact.py 项目: turc42/pylytics
    def drop(self, force=False):
        Table.drop(self, force)

        # Try to also drop the corresponding view if one exists.
        sql = self.DROP_VIEW.format(table=self.table_name)
        try:
            self.connection.execute(sql)
        except IntegrityError:
            self.log_error("Unable to drop view")
示例#2
0
文件: queryproc.py 项目: heikkiv/trak
def dropTable(**kwargs):
    Table.drop(kwargs['table'])