def test(self): sql = sqlgen.drop_table(Foo, False) self.assertEquals("DROP TABLE foo", sql) sql = sqlgen.drop_table(Bar, True) self.assertEquals("DROP TABLE IF EXISTS bar", sql)
def drop_table(self, table, if_exists=False): # read only check self._check_write_ok() # sql = sqlgen.drop_table(table, if_exists) self._execute(sql)