未验证 提交 c05e8f19 编写于 作者: A astaxie 提交者: GitHub

Merge pull request #1001 from bharatsewani1993/master

typo fix database
......@@ -185,7 +185,7 @@ At this point, you should know a bit about developping database drivers in Go. O
## database/sql
databse/sql defines even more high-level methods on top of database/sql/driver for more convenient database operations, and it suggests that you implement a connection pool.
database/sql defines even more high-level methods on top of database/sql/driver for more convenient database operations, and it suggests that you implement a connection pool.
type DB struct {
driver driver.Driver
......
......@@ -13,7 +13,7 @@ There are a couple of drivers that support MySQL in Go. Some of them implement t
I'll use the first driver in the following examples (I use this one in my personal projects too), and I also recommend that you use it for the following reasons:
- It's a new database driver and supports more features.
- Fully supports `databse/sql` interface standards.
- Fully supports `database/sql` interface standards.
- Supports keepalive, long connections with thread-safety.
## Samples
......
......@@ -185,7 +185,7 @@ At this point, you should know a bit about developping database drivers in Go. O
## database/sql
databse/sql defines even more high-level methods on top of database/sql/driver for more convenient database operations, and it suggests that you implement a connection pool.
database/sql defines even more high-level methods on top of database/sql/driver for more convenient database operations, and it suggests that you implement a connection pool.
type DB struct {
driver driver.Driver
......
......@@ -13,7 +13,7 @@ There are a couple of drivers that support MySQL in Go. Some of them implement t
I'll use the first driver in the following examples (I use this one in my personal projects too), and I also recommend that you use it for the following reasons:
- It's a new database driver and supports more features.
- Fully supports `databse/sql` interface standards.
- Fully supports `database/sql` interface standards.
- Supports keepalive, long connections with thread-safety.
## Samples
......
......@@ -21,7 +21,7 @@
sql.Register("mymysql", &d)
}
Мы видим, что все сторонние драйвера вызывают данную функцию для саморегистрации. При этом Go использует карту для сохранения информации о пользовательском драйвере внутри `databse/sql`.
Мы видим, что все сторонние драйвера вызывают данную функцию для саморегистрации. При этом Go использует карту для сохранения информации о пользовательском драйвере внутри `database/sql`.
var drivers = make(map[string]driver.Driver)
......@@ -185,7 +185,7 @@ driver.Rows - это интерфейс для возвращения резул
## database/sql
`databse/sql` определяет высокоуровневые методы для более удобной работы с базами данных (выше чем драйвера) и предлагает вам реализовать пул соединений.
`database/sql` определяет высокоуровневые методы для более удобной работы с базами данных (выше чем драйвера) и предлагает вам реализовать пул соединений.
type DB struct {
driver driver.Driver
......
......@@ -13,7 +13,7 @@
Я буду использовать первый драйвер в моих будущих примерах (в моих проекта я тоже использую его). Я рекомендую вам использовать его по следующим причинам:
- Это новый драйвер базы данных и он предоставляет множество возможностей.
- Полностью поддерживает стандарты интерфейса `databse/sql`.
- Полностью поддерживает стандарты интерфейса `database/sql`.
- Поддерживает постоянное соединение между потоками.
## Примеры
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册