コード例 #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'])