From deacd6d4d69cb5f9ad3351b21f1e09160740ea26 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 16 May 2013 15:03:08 +0800 Subject: [PATCH] improved readme --- README.md | 10 +++++----- README_CN.md | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 40d83496..d066ac96 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ total, err := engine.Count(&User{Name:"xlw"}) ``` -##Execute SQL +## Execute SQL Of course, SQL execution is also provided. @@ -171,7 +171,7 @@ 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 @@ -271,7 +271,7 @@ if err != nil { } ``` -##Mapping Rules +## Mapping Rules 1.Struct and struct's fields name should be Pascal style, and the table and column's name default is SQL style. @@ -321,12 +321,12 @@ type Userinfo struct { ``` -##Documents +## Documents Please visit [GoWalker](http://gowalker.org/github.com/lunny/xorm) -##FAQ +## FAQ 1.How the xorm tag use both with json? diff --git a/README_CN.md b/README_CN.md index fc8c0c14..2e412bea 100644 --- a/README_CN.md +++ b/README_CN.md @@ -148,7 +148,7 @@ err := engine.Delete(&User{Id:1}) total, err := engine.Count(&User{Name:"xlw"}) ``` -##直接执行SQL语句 +## 直接执行SQL语句 当然,如果你想直接使用SQL语句进行操作,也是允许的。 @@ -166,7 +166,7 @@ sql = "update userinfo set username=? where id=?" res, err := engine.Exec(sql, "xiaolun", 1) ``` -##高级用法 +## 高级用法 更高级的用法,我们必须要使用session对象,session对象在创建时会立刻创建一个数据库连接。 @@ -315,11 +315,11 @@ type Userinfo struct { } ``` -##文档 +## 文档 请访问 [GoWalker](http://gowalker.org/github.com/lunny/xorm) 查看详细文档 -##FAQ +## FAQ 1.问:xorm的tag和json的tag如何同时起作用?