From aa150a7ba2130b6bb2d3f06f95d3604f5a7a7fe8 Mon Sep 17 00:00:00 2001 From: Nash Tsai Date: Fri, 18 Apr 2014 16:46:58 +0800 Subject: [PATCH] update QuickStart --- docs/QuickStart.md | 4 ++-- docs/QuickStartCn.md | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/QuickStart.md b/docs/QuickStart.md index 46ba4d9f..f240806d 100644 --- a/docs/QuickStart.md +++ b/docs/QuickStart.md @@ -96,8 +96,8 @@ engine.Logger = f 3.Engine provide DB connection pool settings. -* Use `engine.SetIdleConns()` to set idle connections. -* Use `engine.SetMaxConns()` to set Max connections. This methods support only Go 1.2+. +* Use `engine.SetMaxIdleConns()` to set idle connections. +* Use `engine.SetMaxOpenConns()` to set Max connections. This methods support only Go 1.2+. ## 2.Define struct diff --git a/docs/QuickStartCn.md b/docs/QuickStartCn.md index 879548e0..2b76ca8e 100644 --- a/docs/QuickStartCn.md +++ b/docs/QuickStartCn.md @@ -98,6 +98,11 @@ f, err := os.Create("sql.log") engine.Logger = f ``` +3.engine内部支持连接池接口。 + +* 如果需要设置连接池的空闲数大小,可以使用`engine.SetMaxIdleConns()`来实现。 +* 如果需要设置最大打开连接数,则可以使用`engine.SetMaxOpenConns()`来实现。 + ## 2.定义表结构体