{"id":117840,"date":"2024-03-23T12:01:28","date_gmt":"2024-03-23T03:01:28","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/"},"modified":"2024-04-05T18:31:49","modified_gmt":"2024-04-05T09:31:49","slug":"mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/","title":{"rendered":"MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u4ee5\u4e0b\u306f\u3001MySQL \u3068 Go \u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u3066\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059\u3001\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<ol>\n<li>MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068Go\u8a00\u8a9e\u958b\u767a\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/li>\n<li>\u30bf\u30b9\u30af\u3068\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002task_scheduler \u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>CREATE DATABASE task_scheduler;\r\n<\/code><\/pre>\n<ol>\n<li>\u30bf\u30b9\u30af<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>CREATE TABLE tasks (\r\nid INT AUTO_INCREMENT PRIMARY KEY,\r\nname VARCHAR(255) NOT NULL,\r\ndescription TEXT,\r\nschedule_time DATETIME NOT NULL,\r\nstatus ENUM('pending', 'running', 'completed') DEFAULT 'pending',\r\ncreated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\r\nupdated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\r\n);\r\n<\/code><\/pre>\n<ol>\n<li>Go\u8a00\u8a9e\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c9\u30e9\u30a4\u30d0\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3002<\/li>\n<li>\u30bf\u30b9\u30af\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b Task \u69cb\u9020\u4f53\u3092\u4f5c\u6210\u3059\u308b\u3002\u3053\u306e\u69cb\u9020\u4f53\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">type<\/span> Task <span class=\"hljs-keyword\">struct<\/span> {\r\nID            <span class=\"hljs-type\">int<\/span>\r\nName          <span class=\"hljs-type\">string<\/span>\r\nDescription   <span class=\"hljs-type\">string<\/span>\r\nScheduleTime  time.Time\r\nStatus        <span class=\"hljs-type\">string<\/span>\r\nCreatedAt     time.Time\r\nUpdatedAt     time.Time\r\n}\r\n<\/code><\/pre>\n<ol>\n<li>\u30bf\u30b9\u30af \u30b9\u30b1\u30b8\u30e5\u30fc\u30e9<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">type<\/span> TaskScheduler <span class=\"hljs-keyword\">struct<\/span> {\r\nDB *sql.DB\r\n}\r\n<\/code><\/pre>\n<ol>\n<li>\u30bf\u30b9\u30af\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-params\">(ts *TaskScheduler)<\/span><\/span> AddTask(task *Task) <span class=\"hljs-type\">error<\/span> {\r\nstmt, err := ts.DB.Prepare(<span class=\"hljs-string\">\"INSERT INTO tasks(name, description, schedule_time) VALUES(?, ?, ?)\"<\/span>)\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n<span class=\"hljs-keyword\">return<\/span> err\r\n}\r\n<span class=\"hljs-keyword\">defer<\/span> stmt.Close()\r\n_, err = stmt.Exec(task.Name, task.Description, task.ScheduleTime)\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n<span class=\"hljs-keyword\">return<\/span> err\r\n}\r\n<span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-literal\">nil<\/span>\r\n}\r\n<\/code><\/pre>\n<ol>\n<li>\u4fdd\u7559\u30bf\u30b9\u30af\u306e\u53d6\u5f97<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-params\">(ts *TaskScheduler)<\/span><\/span> GetPendingTasks() ([]*Task, <span class=\"hljs-type\">error<\/span>) {\r\ntasks := []*Task{}\r\nrows, err := ts.DB.Query(<span class=\"hljs-string\">\"SELECT id, name, description, schedule_time, status, created_at, updated_at FROM tasks WHERE status = 'pending'\"<\/span>)\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n<span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-literal\">nil<\/span>, err\r\n}\r\n<span class=\"hljs-keyword\">defer<\/span> rows.Close()\r\n<span class=\"hljs-keyword\">for<\/span> rows.Next() {\r\ntask := &amp;Task{}\r\nerr = rows.Scan(&amp;task.ID, &amp;task.Name, &amp;task.Description, &amp;task.ScheduleTime, &amp;task.Status, &amp;task.CreatedAt, &amp;task.UpdatedAt)\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n<span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-literal\">nil<\/span>, err\r\n}\r\ntasks = <span class=\"hljs-built_in\">append<\/span>(tasks, task)\r\n}\r\n<span class=\"hljs-keyword\">return<\/span> tasks, <span class=\"hljs-literal\">nil<\/span>\r\n}\r\n<\/code><\/pre>\n<ol>\n<li>Task \u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u66f4\u65b0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-params\">(ts *TaskScheduler)<\/span><\/span> UpdateTaskStatus(task *Task, status <span class=\"hljs-type\">string<\/span>) <span class=\"hljs-type\">error<\/span> {\r\nstmt, err := ts.DB.Prepare(<span class=\"hljs-string\">\"UPDATE tasks SET status = ? WHERE id = ?\"<\/span>)\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n<span class=\"hljs-keyword\">return<\/span> err\r\n}\r\n<span class=\"hljs-keyword\">defer<\/span> stmt.Close()\r\n_, err = stmt.Exec(status, task.ID)\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n<span class=\"hljs-keyword\">return<\/span> err\r\n}\r\n<span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-literal\">nil<\/span>\r\n}\r\n<\/code><\/pre>\n<ol>\n<li>\u751f\u307e\u308c\u306a\u304c\u3089\u306e\u82f1\u8a9e\u8a71\u8005\u306f\u5916\u56fd\u8a9e\u3092\u5b66\u3076\u969b\u306b\u3001\u6bcd\u56fd\u8a9e\u306e\u7fd2\u6163\u306b\u5f15\u304d\u305a\u3089\u308c\u3084\u3059\u3044\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-title\">main<\/span><span class=\"hljs-params\">()<\/span><\/span> {\r\ndb, err := sql.Open(<span class=\"hljs-string\">\"mysql\"<\/span>, <span class=\"hljs-string\">\"user:password@tcp(localhost:3306)\/task_scheduler\"<\/span>)\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\nlog.Fatal(err)\r\n}\r\n<span class=\"hljs-keyword\">defer<\/span> db.Close()\r\nscheduler := &amp;TaskScheduler{DB: db}\r\n<span class=\"hljs-keyword\">for<\/span> {\r\ntasks, err := scheduler.GetPendingTasks()\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\nlog.Println(err)\r\n<span class=\"hljs-keyword\">continue<\/span>\r\n}\r\n<span class=\"hljs-keyword\">for<\/span> _, task := <span class=\"hljs-keyword\">range<\/span> tasks {\r\n<span class=\"hljs-comment\">\/\/ \u6267\u884c\u4efb\u52a1<\/span>\r\nlog.Println(<span class=\"hljs-string\">\"Running task:\"<\/span>, task.Name)\r\n<span class=\"hljs-comment\">\/\/ \u66f4\u65b0\u4efb\u52a1\u72b6\u6001\u4e3a\u8fd0\u884c\u4e2d<\/span>\r\nerr = scheduler.UpdateTaskStatus(task, <span class=\"hljs-string\">\"running\"<\/span>)\r\n<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\nlog.Println(err)\r\n<span class=\"hljs-keyword\">continue<\/span>\r\n}\r\n<span class=\"hljs-comment\">\/\/ \u6a21\u62df\u4efb\u52a1\u6267\u884c<\/span>\r\ntime.Sleep(<span class=\"hljs-number\">5<\/span> * time.Second)\r\n<span class=\"hljs-comment\">\/\/ \u66f4\u65b0\u4efb\u52a1\u72b6\u6001\u4e3a\u5df2\u5b8c\u6210<\/span>\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u306f\u3001MySQL \u3068 Go \u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u3066\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059\u3001\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002 MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068Go\u8a00\u8a9e\u958b\u767a\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 \u30bf\u30b9\u30af\u3068\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b My [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-117840","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3068go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u4ee5\u4e0b\u306f\u3001MySQL \u3068 Go \u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u3066\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059\u3001\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002 MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068Go\u8a00\u8a9e\u958b\u767a\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 \u30bf\u30b9\u30af\u3068\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b My [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3068go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T03:01:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-05T09:31:49+00:00\" \/>\n<meta name=\"author\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/\",\"name\":\"MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T03:01:28+00:00\",\"dateModified\":\"2024-04-05T09:31:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\",\"name\":\"\u7dbe\u4e43, \u4e00\u5e0c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"caption\":\"\u7dbe\u4e43, \u4e00\u5e0c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3068go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\/","og_locale":"ja_JP","og_type":"article","og_title":"MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5","og_description":"\u4ee5\u4e0b\u306f\u3001MySQL \u3068 Go \u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u3066\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059\u3001\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002 MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068Go\u8a00\u8a9e\u958b\u767a\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 \u30bf\u30b9\u30af\u3068\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b My [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3068go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T03:01:28+00:00","article_modified_time":"2024-04-05T09:31:49+00:00","author":"\u7dbe\u4e43, \u4e00\u5e0c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u7dbe\u4e43, \u4e00\u5e0c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/","name":"MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T03:01:28+00:00","dateModified":"2024-04-05T09:31:49+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"MySQL\u3068Go\u8a00\u8a9e\u3092\u7528\u3044\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff","name":"\u7dbe\u4e43, \u4e00\u5e0c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","caption":"\u7dbe\u4e43, \u4e00\u5e0c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a8go%e8%a8%80%e8%aa%9e%e3%82%92%e7%94%a8%e3%81%84%e3%81%a6%e3%82%b7%e3%83%b3%e3%83%97%e3%83%ab%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%b9%e3%82%b1%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%aa\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/117840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=117840"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/117840\/revisions"}],"predecessor-version":[{"id":322880,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/117840\/revisions\/322880"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=117840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=117840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=117840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}