Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug TiDB Documentation: 使用 Go-MySQL-Driver 连接到 TiDB #15779

Closed
Tracked by #15772
qiancai opened this issue Dec 16, 2023 · 4 comments · Fixed by #16087
Closed
Tracked by #15772

Debug TiDB Documentation: 使用 Go-MySQL-Driver 连接到 TiDB #15779

qiancai opened this issue Dec 16, 2023 · 4 comments · Fixed by #16087
Assignees
Labels
2024-tidb-docs-dash This issue or PR is included in the 2024 TiDB Docs Dash event.

Comments

@qiancai
Copy link
Collaborator

qiancai commented Dec 16, 2023

此 issue 为 Debug TiDB Documentation: TiDB 中文文档测试说明・Issue #15772・pingcap/docs-cn 的 sub-issue,目的是为了测试和验证使用 Go-MySQL-Driver 连接到 TiDB 文档。

请参考 #15772 中的说明测试该文档。

  1. 在完成文档验证后,将您的验证结果以评论的形式添加到当前 issue 上。验证结果可以是您遇到的问题、发现的错误或其他任何发现。如果验证顺利通过,您也可以添加评论说明。
  2. 对于在验证过程中发现的任何问题或错误,欢迎创建 Pull Request(PR)直接修正文档。创建 PR 时,请在 PR 描述中指明该 PR 解决了哪个 issue (例如,Fix #15779)。关于如何创建 PR 的详情,请参考TiDB 中文文档贡献指南

非常感谢您对测试和验证文档的贡献!

@hey-hoho
Copy link
Contributor

/assign

@hey-hoho
Copy link
Contributor

hey-hoho commented Jan 9, 2024

结果验证通过,与预期一致。

E:\heao\git\tidb-example\tidb-golang-sql-driver-quickstart>go run .
getPlayer: {ID:test Coins:1 Goods:1}
countPlayers: 1920
print 1 player: {ID:0026c037-445e-4a8d-8367-b3a90f36063d Coins:1122 Goods:4885}
print 2 player: {ID:004cb3f0-6f13-4fd8-a127-60962f05f696 Coins:6861 Goods:7681}
a9-9e0e-b98ddfb9c771 Coins:16 Goods:a9-9e0e-b98ddfb9c771 Coins:16 Goods:4616}a9-9e0e-b98ddfb9c771 Coins:16 Goods:4616}

buyGoods:
    => this trade will fail

buyGoods:
    => this trade will success

[buyGoods]:
    'trade success'

@hey-hoho
Copy link
Contributor

hey-hoho commented Jan 9, 2024

示例代码片段有些不严谨的地方已提PR修正。

@qiancai
Copy link
Collaborator Author

qiancai commented Jan 31, 2024

@hey-hoho 非常感谢您对使用 Go-MySQL-Driver 连接到 TiDB 文档的测试❤️。因为测试结果与预期一致,且测试后创建的文档修改 PR #16087 已合并,此 issue 已自动关闭。如果后续您再遇到任何文档问题,欢迎在此文档仓库提 issue 或者 PR 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2024-tidb-docs-dash This issue or PR is included in the 2024 TiDB Docs Dash event.
Development

Successfully merging a pull request may close this issue.

2 participants