def add(self, name, data_type):
        "Adds a column name with data type and assigns an index."
        index = self.__column_index
        self.__column_names[name] = data_type, index
        self.__column_index += 1
        return index
Adds a column name with data type and assigns an index.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py