@classmethod
def adapt_type(cls, name):
    """Convert a generic type name into this engine's version.

        E.g. for SQLite::

            >>> engine.adapt_type('SERIAL PRIMARY KEY')
            'INTEGER PRIMARY KEY'

        This is case insensitive, and passes through unknown type untouched::

            >>> engine.adapt_type('unknown')
            'unknown'

        """
    return cls._types.get(name.lower(), name)
