fixed sql.OpenDB to sql.Open
This commit is contained in:
parent
09848afbcf
commit
e7a3f8434b
|
@ -21,7 +21,7 @@ SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
|||
|
||||
## Quick Start
|
||||
|
||||
1.Create a database engine just like sql.OpenDB (for example: mysql)
|
||||
1.Create a database engine just like sql.Open (for example: mysql)
|
||||
|
||||
engine := xorm.Create("mysql", "root:123@/test?charset=utf8")
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
|||
|
||||
## 快速开始
|
||||
|
||||
1.创建数据库引擎,这个函数的参数和sql.OpenDB相同,但不会立即创建连接 (例如: mysql)
|
||||
1.创建数据库引擎,这个函数的参数和sql.Open相同,但不会立即创建连接 (例如: mysql)
|
||||
|
||||
engine := xorm.Create("mysql", "root:123@/test?charset=utf8")
|
||||
|
||||
|
|
Loading…
Reference in New Issue