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"})
|
||||
```
|
||||
|
||||
|
||||
##Execute SQL
|
||||
|
||||
Of course, SQL execution is also provided.
|
||||
|
@ -169,6 +170,7 @@ sql = "update userinfo set username=? where id=?"
|
|||
res, err := engine.Exec(sql, "xiaolun", 1)
|
||||
```
|
||||
|
||||
|
||||
##Advanced Usage
|
||||
|
||||
for deep usage, you should create a session, this func will create a database connection immediatelly
|
||||
|
@ -318,10 +320,12 @@ type Userinfo struct {
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
##Documents
|
||||
|
||||
Please visit [GoWalker](http://gowalker.org/github.com/lunny/xorm)
|
||||
|
||||
|
||||
##FAQ
|
||||
|
||||
1.How the xorm tag use both with json?
|
||||
|
|
Loading…
Reference in New Issue