{"id":2131,"date":"2022-01-04T00:35:57","date_gmt":"2022-01-03T15:35:57","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=2131"},"modified":"2022-01-04T00:35:57","modified_gmt":"2022-01-03T15:35:57","slug":"2022-1-1-3","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2022-1-1-3\/","title":{"rendered":"2022\/1\/1-3"},"content":{"rendered":"\n<p>\u89aa\u306e\u5b9f\u5bb6\u306b\u5e30\u7701\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u3057\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>diesel_cli\u3092\u5165\u308c\u308b\u306e\u306b\u5272\u3068\u82e6\u52b4\u3057\u305f\u306e\u3067\u30e1\u30e2\u3002diesel_cli\u3068\u3044\u3046\u306e\u306f\u4f55\u304b\u3068\u3044\u3046\u3068\u3001\u307e\u305aRust\u306eORM\u3068\u3057\u3066diesel\u3068\u3044\u3046\u306e\u304c\u3042\u3063\u3066\u3001\u305d\u3044\u3064\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u304cdiesel_cli\u3067\u3042\u308b\u3002<code>cargo install diesel_cli<\/code>\u3067\u5165\u308c\u3089\u308c\u308b\u3068\u805e\u3044\u305f\u306e\u3060\u304c\u3001\u30a8\u30e9\u30fc\u304c\u8272\u3005\u51fa\u305f\u3002\u539f\u56e0\u3092\u8abf\u3079\u3066\u307f\u308b\u3068\u4f9d\u5b58\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u4fc2\u306e\u30a8\u30e9\u30fc\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p><code>cargo install<\/code>\u306f\u30c4\u30fc\u30eb\u3092\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u3060\u304c\u3001\u30d0\u30a4\u30ca\u30ea\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u30bd\u30fc\u30b9\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3082\u306e\u3067\u3042\u308b\u3002diesel\u306fMySQL\u3001PostgreSQL\u3001SQLite\u306e3\u7a2e\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u305d\u308c\u3089\u3068\u63a5\u7d9a\u3059\u308b\u6a5f\u80fd\u8fbc\u307f\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u306b\u306f\u305d\u306e\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5fc5\u8981\u306a\u308f\u3051\u3067\u3042\u308b\u3002\u5177\u4f53\u7684\u306b\u306f\u3001MySQL\u306e\u305f\u3081\u306b\u306fmysqlclient.lib\u3001PostgreSQL\u306e\u305f\u3081\u306b\u306flibpq.lib\u3001SQLite\u306e\u305f\u3081\u306b\u306fsqlite3.lib\u304c\u8981\u308b\u3002(Windows\u306e\u5834\u5408)\u3053\u308c\u304c\u3069\u3053\u304b\u3089\u624b\u306b\u5165\u308c\u3089\u308c\u308b\u3082\u306e\u306a\u306e\u304b\u8abf\u3079\u308b\u306e\u304c\u3084\u3084\u9762\u5012\u3060\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u7d50\u8ad6\u3068\u3057\u3066\u306f\u3001\u307e\u305amysqlclient.lib\u306fMySQL\u30b5\u30fc\u30d0\u30fc\u672c\u4f53\u3092\u5165\u308c\u308c\u3070\u624b\u306b\u5165\u308b\u3002\u6614\u306fC API\u304c\u5358\u72ec\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u305f\u3089\u3057\u3044\u304c\u3001\u4eca\u306f\u305d\u3046\u3067\u306f\u306a\u3044\u3089\u3057\u3044\u3002\u53e4\u3044\u60c5\u5831\u304c\u5f15\u3063\u304b\u304b\u3063\u3066C++ API\u306f\u73fe\u5728\u3082\u5358\u72ec\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u308b\u304c\u305d\u308c\u306fdiesel_cli\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u4f7f\u7528\u3067\u304d\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3002mysqlclient.lib\u306e\u5b58\u5728\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u74b0\u5883\u5909\u6570MYSQLCLIENT_LIB_DIR\u306b\u6307\u5b9a\u3059\u308b\u3068\u8aad\u307f\u8fbc\u3093\u3067\u304f\u308c\u308b\u3002<\/p>\n\n\n\n<p>libpq.lib\u306fPostgreSQL\u30b5\u30fc\u30d0\u30fc\u672c\u4f53\u3092\u5165\u308c\u308c\u3070\u624b\u306b\u5165\u308b\u3002\u3053\u3061\u3089\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\u306fPQ_LIB_DIR\u306b\u6307\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<p>sqlite3.lib\u306f\u5c11\u3057\u5384\u4ecb\u3067\u3001SQLite\u516c\u5f0f\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u308b\u306e\u306fsqlite3.dll\u3068sqlite3.def\u3060\u3051\u3067\u3042\u308b\u3002VisualStudio\u4ed8\u5c5e\u306elib.exe(Microsoft Library Manager)\u3092\u4f7f\u3046\u3068.def\u304b\u3089.lib\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002SQLITE3_LIB_DIR\u306b\u6307\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u306e\u8a2d\u5b9a\u3092\u3057\u305f\u3046\u3048\u3067\u3088\u3046\u3084\u304f<code>cargo install diesel_cli<\/code>\u306e\u307f\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u3068\u3053\u308d\u30013\u3064\u3068\u3082\u5fc5\u305a\u5165\u308c\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001&#8211;no-default-features\u3092\u4ed8\u3051\u305f\u3046\u3048\u3067&#8211;features\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u5fc5\u8981\u306a\u3082\u306e\u306e\u307f\u6709\u52b9\u5316\u3059\u308c\u3070\u3088\u304f\u3001\u305d\u306e\u5834\u5408\u3067\u3042\u308c\u30703\u3064\u306e\u5185\u306e\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3060\u3051\u8a2d\u5b9a\u3059\u308c\u3070\u3088\u3044\u3002\u305d\u308c\u306b\u3057\u3066\u3082\u305d\u308c\u305e\u308c\u306e\u6a5f\u80fd\u306e\u5165\u308c\u65b9\u304c\u826f\u304f\u5206\u304b\u3089\u306a\u304f\u3066\u3082\u3084\u3082\u3084\u3059\u308b\u306e\u3067\u3001\u7d50\u5c40\u5168\u3066\u8abf\u3079\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u5185\u8a18\u4e8b\u306b\u307e\u3068\u3081\u308b\u3002<\/p>\n\n\n\n<p>\u53c2\u8003: <\/p>\n\n\n\n<p><a href=\"https:\/\/jpndev.com\/post\/842525\">https:\/\/jpndev.com\/post\/842525<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/dev.mysql.com\/downloads\/c-api\/\">https:\/\/dev.mysql.com\/downloads\/c-api\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.sqlite.org\/download.html\">https:\/\/www.sqlite.org\/download.html<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/sgrif\/mysqlclient-sys\">https:\/\/github.com\/sgrif\/mysqlclient-sys<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/sgrif\/pq-sys\">https:\/\/github.com\/sgrif\/pq-sys<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/rusqlite\/rusqlite\">https:\/\/github.com\/rusqlite\/rusqlite<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89aa\u306e\u5b9f\u5bb6\u306b\u5e30\u7701\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u3057\u3066\u3044\u305f\u3002 diesel_cli\u3092\u5165\u308c\u308b\u306e\u306b\u5272\u3068\u82e6\u52b4\u3057\u305f\u306e\u3067\u30e1\u30e2\u3002diesel_cli\u3068\u3044\u3046\u306e\u306f\u4f55\u304b\u3068\u3044\u3046\u3068\u3001\u307e\u305aRust\u306eORM\u3068\u3057\u3066diesel\u3068\u3044\u3046\u306e\u304c\u3042\u3063\u3066\u3001\u305d\u3044\u3064\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u7ba1 &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2022-1-1-3\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2022\/1\/1-3&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2131","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=2131"}],"version-history":[{"count":4,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2131\/revisions"}],"predecessor-version":[{"id":2135,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2131\/revisions\/2135"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=2131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=2131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=2131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}