{"action":"created","issue":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/1949","repository_url":"https://api.github.com/repos/jinzhu/gorm","labels_url":"https://api.github.com/repos/jinzhu/gorm/issues/1949/labels{/name}","comments_url":"https://api.github.com/repos/jinzhu/gorm/issues/1949/comments","events_url":"https://api.github.com/repos/jinzhu/gorm/issues/1949/events","html_url":"https://github.com/jinzhu/gorm/issues/1949","id":332426100,"node_id":"MDU6SXNzdWUzMzI0MjYxMDA=","number":1949,"title":"mysql里面如果存map[string]string数据","user":{"login":"richardxz","id":12457495,"node_id":"MDQ6VXNlcjEyNDU3NDk1","avatar_url":"https://avatars1.githubusercontent.com/u/12457495?v=4","gravatar_id":"","url":"https://api.github.com/users/richardxz","html_url":"https://github.com/richardxz","followers_url":"https://api.github.com/users/richardxz/followers","following_url":"https://api.github.com/users/richardxz/following{/other_user}","gists_url":"https://api.github.com/users/richardxz/gists{/gist_id}","starred_url":"https://api.github.com/users/richardxz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardxz/subscriptions","organizations_url":"https://api.github.com/users/richardxz/orgs","repos_url":"https://api.github.com/users/richardxz/repos","events_url":"https://api.github.com/users/richardxz/events{/privacy}","received_events_url":"https://api.github.com/users/richardxz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-14T14:24:07Z","updated_at":"2018-06-14T17:40:16Z","closed_at":null,"author_association":"NONE","body":"如题，用gorm 连接mysql，好像不支持map类型的数据，有办法workaround吗？或者有办法让创建table时忽略这种类型的数据吗？"},"comment":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/comments/397378848","html_url":"https://github.com/jinzhu/gorm/issues/1949#issuecomment-397378848","issue_url":"https://api.github.com/repos/jinzhu/gorm/issues/1949","id":397378848,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzM3ODg0OA==","user":{"login":"gstvg","id":28798827,"node_id":"MDQ6VXNlcjI4Nzk4ODI3","avatar_url":"https://avatars1.githubusercontent.com/u/28798827?v=4","gravatar_id":"","url":"https://api.github.com/users/gstvg","html_url":"https://github.com/gstvg","followers_url":"https://api.github.com/users/gstvg/followers","following_url":"https://api.github.com/users/gstvg/following{/other_user}","gists_url":"https://api.github.com/users/gstvg/gists{/gist_id}","starred_url":"https://api.github.com/users/gstvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gstvg/subscriptions","organizations_url":"https://api.github.com/users/gstvg/orgs","repos_url":"https://api.github.com/users/gstvg/repos","events_url":"https://api.github.com/users/gstvg/events{/privacy}","received_events_url":"https://api.github.com/users/gstvg/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T17:40:16Z","updated_at":"2018-06-14T17:40:16Z","author_association":"NONE","body":"Using the tag gorm:\"-\"\r\n\r\ntype User struct {\r\n      gorm.Model\r\n      Name string\r\n      IgnoredMap map[string]string `gorm:\"-\"`\r\n}\r\n\r\nIf you need to save the map on db, you can create custom Scanner and Valuer for that type:\r\n\r\ntype MyMap map[string]string\r\n\r\nfunc (m MyMap) Scanner...\r\nfunc (m MyMap) Valuer..."}}
{"actor":{"display_login":"gstvg"}}