{"title":" Go + mgo (MongoDB)\u3067auto increment\u7684\u306a\u4e8b\u3092\u3084\u308b\u3002","author_name":"oranie","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foranie.hatenablog.com%2Fentry%2F20141031%2F1414720484\" title=\" Go + mgo (MongoDB)\u3067auto increment\u7684\u306a\u4e8b\u3092\u3084\u308b\u3002 - oranie&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/oranie/","published":"2014-10-31 10:54:44","image_url":null,"categories":[],"type":"rich","description":"\u81ea\u5206\u30e1\u30e2\u306a\u306e\u3067\u7c21\u5358\u306b\u3002 MongoDB\u5074\u306bcounter\u7528\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u4f5c\u308b Go\u5074\u3067counter\u7528\u306estruct\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304f\u3002 Apply()\u3092\u5229\u7528\u3057\u3066counter\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u3001\u305d\u306e\u5024\u3092\u4f7f\u3063\u3066\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092INSERT\u3059\u308b\u3002 \u3068\u3044\u3046\u6d41\u308c\u306b\u306a\u308b\u3002 mgo\u306e\u30c9\u30e9\u30a4\u30d0\u516c\u5f0f\u306bApply\u306e\u4ee3\u8868\u7684\u306a\u4f7f\u3044\u65b9\u3068\u3057\u3066\u66f8\u304b\u308c\u3066\u3044\u308b\u304c\u521d\u3081\u826f\u304f\u5206\u304b\u3089\u305a\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 http://godoc.org/labix.org/v2/mgo#Query.Apply MongoDB\u5074\u306bcounter\u7528\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u4f5c\u308b \u3068\u308a\u3042\u3048\u305a\u3053\u3053\u3092\u8aad\u307f\u307e\u3057\u3087\u3046\u3002 http://docs.mongodb.org/manual/\u2026","blog_title":"oranie's blog","url":"https://oranie.hatenablog.com/entry/20141031/1414720484","width":"100%","blog_url":"https://oranie.hatenablog.com/","provider_name":"Hatena Blog"}