improved readme
This commit is contained in:
parent
8a08aadd0f
commit
f1ec5063b2
|
@ -151,6 +151,7 @@ err := engine.Delete(&User{Id:1})
|
||||||
total, err := engine.Count(&User{Name:"xlw"})
|
total, err := engine.Count(&User{Name:"xlw"})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
##Execute SQL
|
##Execute SQL
|
||||||
|
|
||||||
Of course, SQL execution is also provided.
|
Of course, SQL execution is also provided.
|
||||||
|
@ -168,6 +169,7 @@ results, err := engine.Query(sql)
|
||||||
sql = "update userinfo set username=? where id=?"
|
sql = "update userinfo set username=? where id=?"
|
||||||
res, err := engine.Exec(sql, "xiaolun", 1)
|
res, err := engine.Exec(sql, "xiaolun", 1)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
##Advanced Usage
|
##Advanced Usage
|
||||||
|
|
||||||
|
@ -318,10 +320,12 @@ type Userinfo struct {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
##Documents
|
##Documents
|
||||||
|
|
||||||
Please visit [GoWalker](http://gowalker.org/github.com/lunny/xorm)
|
Please visit [GoWalker](http://gowalker.org/github.com/lunny/xorm)
|
||||||
|
|
||||||
|
|
||||||
##FAQ
|
##FAQ
|
||||||
|
|
||||||
1.How the xorm tag use both with json?
|
1.How the xorm tag use both with json?
|
||||||
|
|
Loading…
Reference in New Issue