Obtains DBMS specific SQL code portion needed to set an index
        declaration to be used in statements like CREATE TABLE.

        :param name: The name of the index.
        :type name: str

        :param index: The index definition
        :type index: Index

        :return: DBMS specific SQL code portion needed to set an index.
        :rtype: str

def get_index_declaration_sql(self, name, index):
        """
        Obtains DBMS specific SQL code portion needed to set an index
        declaration to be used in statements like CREATE TABLE.

        :param name: The name of the index.
        :type name: str

        :param index: The index definition
        :type index: Index

        :return: DBMS specific SQL code portion needed to set an index.
        :rtype: str
        """
        columns = index.get_quoted_columns(self)
        name = Identifier(name)

        if not columns:
            raise DBALException('Incomplete definition. "columns" required.')

        return "%sINDEX %s (%s)%s" % (
            self.get_create_index_sql_flags(index),
            name.get_quoted_name(self),
            self.get_index_field_declaration_list_sql(columns),
            self.get_partial_index_sql(index),
        )