fixed sql.OpenDB to sql.Open

This commit is contained in:
Lunny Xiao 2013-05-09 10:18:52 +08:00
parent 09848afbcf
commit e7a3f8434b
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
## Quick Start ## 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") engine := xorm.Create("mysql", "root:123@/test?charset=utf8")

View File

@ -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") engine := xorm.Create("mysql", "root:123@/test?charset=utf8")