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

Update mysql.md #131

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tasks/mysql/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@
fmt.Println(r.RowsAffected())
}

```
```

执行程序,我们会在user 中插入一条记录。
执行程序,我们会在user 中插入一条记录。

2. 查询数据

Check failure on line 131 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Ordered list item prefix

docs/tasks/mysql/mysql.md:131:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/2/3] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md029.md

我们需要先定义一个 User 结构体,接着再查询

Check failure on line 133 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Hard tabs

docs/tasks/mysql/mysql.md:133:1 MD010/no-hard-tabs Hard tabs [Column: 1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md010.md

```go

Check failure on line 135 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Hard tabs

docs/tasks/mysql/mysql.md:135:1 MD010/no-hard-tabs Hard tabs [Column: 1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md010.md
package main

import (
Expand Down Expand Up @@ -165,13 +165,13 @@
}
}

```

Check failure on line 168 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Hard tabs

docs/tasks/mysql/mysql.md:168:1 MD010/no-hard-tabs Hard tabs [Column: 1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md010.md

执行上述程序,我们会看到 我们刚刚插入进去的 user 信息

Check failure on line 170 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Hard tabs

docs/tasks/mysql/mysql.md:170:1 MD010/no-hard-tabs Hard tabs [Column: 1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md010.md

3. 修改数据 我们继续修改代码

Check failure on line 172 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Ordered list item prefix

docs/tasks/mysql/mysql.md:172:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md029.md

```go

Check failure on line 174 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Hard tabs

docs/tasks/mysql/mysql.md:174:1 MD010/no-hard-tabs Hard tabs [Column: 1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md010.md
package main

import (
Expand All @@ -194,11 +194,11 @@
}
}

```

Check failure on line 197 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Hard tabs

docs/tasks/mysql/mysql.md:197:1 MD010/no-hard-tabs Hard tabs [Column: 1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md010.md

运行上述代码,会发现数据库中的记录 type 变为 2了。

Check failure on line 199 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Hard tabs

docs/tasks/mysql/mysql.md:199:1 MD010/no-hard-tabs Hard tabs [Column: 1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md010.md

4. 删除数据

Check failure on line 201 in docs/tasks/mysql/mysql.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Ordered list item prefix

docs/tasks/mysql/mysql.md:201:1 MD029/ol-prefix Ordered list item prefix [Expected: 3; Actual: 4; Style: 1/2/3] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md029.md

```go
package main
Expand Down
Loading