def METHOD_NAME(flddef):
    field_type = field_type_map[ flddef.type ]
    if hasattr(flddef, 'length') and field_type in (types.Text, types.String):
        field_type = field_type(flddef.length)
    return Column(flddef.column,
                  field_type,
                  index    = flddef.indexed,
                  unique   = flddef.unique,
                  nullable = not flddef.required)