{"id":184858,"date":"2020-10-28T07:50:04","date_gmt":"2020-10-27T23:50:04","guid":{"rendered":"http:\/\/4563.org\/?p=184858"},"modified":"2020-10-28T07:50:04","modified_gmt":"2020-10-27T23:50:04","slug":"gorm-%e6%95%b0%e6%8d%ae%e5%ba%93%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=184858","title":{"rendered":"gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xie1xiao1jun <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>gormt<\/h1>\n<p> <\/p>\n<h3>\u4e00\u6b3e mysql \u6570\u636e\u5e93\u8f6c struct \u5de5\u5177<\/h3>\n<ul>\n<li>\u652f\u6301 grom v1\/v2 \u7248\u672c<\/li>\n<li>\u53ef\u4ee5\u5c06 mysql \u6570\u636e\u5e93\u81ea\u52a8\u751f\u6210 golang \u7ed3\u6784<\/li>\n<li>\u81ea\u52a8\u751f\u6210\u5feb\u6377\u64cd\u4f5c\u51fd\u6570<\/li>\n<li>\u652f\u6301\u7d22\u5f15,\u5916\u952e<\/li>\n<li>\u5e26\u5927\u9a7c\u5cf0\u547d\u540d\u89c4\u5219<\/li>\n<li>\u5e26 json \u6807\u7b7e<\/li>\n<li>\u652f\u6301 mysql\/sqlite<\/li>\n<li>\u5e26\u754c\u9762\u4ea4\u4e92(\u4fee\u590d\u4e86 windows \u754c\u9762\u5f02\u5e38\u95ee\u9898)<\/li>\n<li>\u652f\u6301\u8868\u6ce8\u91ca default<\/li>\n<\/ul>\n<h2>\u4ea4\u4e92\u754c\u9762\u6a21\u5f0f<\/h2>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201103_5fa0f6d700f51.gif\" alt=\"gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177\" \/><\/p>\n<pre><code>.\/gormt -g=true <\/code><\/pre>\n<h2>\u547d\u4ee4\u884c\u6a21\u5f0f<\/h2>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201103_5fa0f6dd538c6.gif\" alt=\"gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177\" \/><\/p>\n<pre><code>.\/gormt -g=false <\/code><\/pre>\n<h2>\u63d0\u4f9b\u4e00\u4e2a windows \u53ef\u89c6\u5316\u5de5\u5177<\/h2>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201103_5fa0f6e238ddc.png\" alt=\"gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201103_5fa0f6e9f04bb.jpg\" alt=\"gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201103_5fa0f6f53f538.jpg\" alt=\"gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201103_5fa0f6faae224.jpg\" alt=\"gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177\" \/><\/p>\n<p>\u4e0b\u8f7d\u5730\u5740<\/p>\n<ul>\n<li>\n<h6>\u4f20\u9001\u95e8<\/h6>\n<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>1<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3983351\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chengxiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e4b\u524d\u6211\u4e00\u76f4\u89c9\u5f97\u8fd9\u7c7b\u5de5\u5177\u6ca1\u5565\u2026\u2026\u76f4\u5230\u6211\u78b0\u5230\u4e00\u5f20 80 \u4e2a\u5b57\u6bb5\u7684\u8868                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>gorm \u6570\u636e\u5e93\u8f6c\u6362\u5de5\u5177 \u8cc7\u6df1\u5927\u4f6c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/184858"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=184858"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/184858\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184858"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}