From aa93d08a8fe8e70069de9d79868f5b760ed5874b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 12 May 2013 14:19:38 +0800 Subject: [PATCH] improved readme --- README.md | 5 +++-- README_CN.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eaa330c3..7eab0768 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ sql = "update userinfo set username=? where id=?" res, err := engine.Exec(sql, "xiaolun", 1) ``` -##Deep Use +##Advanced Usage for deep usage, you should create a session, this func will create a database connection immediatelly ``` @@ -266,7 +266,8 @@ 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. For example: diff --git a/README_CN.md b/README_CN.md index 413a50d6..871bc2e4 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,5 +1,4 @@ # xorm ----------- [English](https://github.com/lunny/xorm/blob/master/README.md) xorm是一个Go语言的ORM库. 通过它可以使数据库操作非常简便。 @@ -163,6 +162,7 @@ res, err := engine.Exec(sql, "xiaolun", 1) ``` ##高级用法 + 更高级的用法,我们必须要使用session对象,session对象在创建时会立刻创建一个数据库连接。 ```