def _partition_operation_sql(self, operation, settings=None, from_part=None):
operation = operation.upper()<EOL>assert operation in self.OPERATIONS, "<STR_LIT>" % comma_join(self.OPERATIONS)<EOL>sql = "<STR_LIT>" % (self._database.db_name, self.table, operation, self.partition)<EOL>if from_part is not None:<EOL><INDENT>sql += "<STR_LIT>" % from_part<EOL><DEDENT>self._database.raw(sql, settings=settings, stream=False)<EOL>
Performs some operation over partition
:param db: Database object to execute operation on
:param operation: Operation to execute from SystemPart.OPERATIONS set
:param settings: Settings for executing request to ClickHouse over db.raw() method
:return: Operation execution result