improved readme

This commit is contained in:
Lunny Xiao 2013-05-16 14:16:39 +08:00
parent 8a08aadd0f
commit f1ec5063b2
1 changed files with 4 additions and 0 deletions

View File

@ -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.
@ -169,6 +170,7 @@ 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
for deep usage, you should create a session, this func will create a database connection immediatelly for deep usage, you should create a session, this func will create a database connection immediatelly
@ -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?