@classmethod
def create(cls, oid, name, len, type, category, delim, relid):
    """Create a type code for a PostgreSQL data type."""
    self = cls(name)
    self.oid = oid
    self.len = len
    self.type = type
    self.category = category
    self.delim = delim
    self.relid = relid
    return self
