fixed readme bugs
This commit is contained in:
parent
675f6f5f83
commit
8e698d9b9d
|
@ -17,7 +17,7 @@ Drivers for Go's sql package which currently support database/sql includes:
|
||||||
|
|
||||||
* SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
* SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
||||||
|
|
||||||
* Postgres: [github.com/bylevel/pg](https://github.com/bylevel/pg)
|
* Postgres: [github.com/bylevel/pg](https://github.com/bylevel/pq)
|
||||||
|
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
@ -61,7 +61,7 @@ import (
|
||||||
_ "github.com/Go-SQL-Driver/MySQL"
|
_ "github.com/Go-SQL-Driver/MySQL"
|
||||||
"github.com/lunny/xorm"
|
"github.com/lunny/xorm"
|
||||||
)
|
)
|
||||||
err, engine := xorm.NewEngine("mysql", "root:123@/test?charset=utf8")
|
engine, err := xorm.NewEngine("mysql", "root:123@/test?charset=utf8")
|
||||||
defer engine.Close()
|
defer engine.Close()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ import (
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"github.com/lunny/xorm"
|
"github.com/lunny/xorm"
|
||||||
)
|
)
|
||||||
err, engine = xorm.NewEngine("sqlite3", "./test.db")
|
engine, err = xorm.NewEngine("sqlite3", "./test.db")
|
||||||
defer engine.Close()
|
defer engine.Close()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue