Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 4fff60e

Browse files
committed
v0.3.1
1 parent 3883d0b commit 4fff60e

4 files changed

Lines changed: 53 additions & 9 deletions

File tree

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,21 @@ Drivers for Go's sql package which currently support database/sql includes:
4141

4242
# Changelog
4343

44-
* **v0.2.3** : Improved documents; Optimistic Locking support; Timestamp with time zone support; Mapper change to tableMapper and columnMapper & added PrefixMapper & SuffixMapper support custom table or column name's prefix and suffix;Insert now return affected, err instead of id, err; Added UseBool & Distinct;
45-
* **v0.2.2** : Postgres drivers now support lib/pq; Added method Iterate for record by record to handler;Added SetMaxConns(go1.2+) support; some bugs fixed.
46-
* **v0.2.1** : Added database reverse tool, now support generate go & c++ codes, see [Xorm Tool README](https://github.com/lunny/xorm/blob/master/xorm/README.md); some bug fixed.
47-
* **v0.2.0** : Added Cache supported, select is speeder up 3~5x; Added SameMapper for same name between struct and table; Added Sync method for auto added tables, columns, indexes;
44+
* **v0.3.1**
45+
46+
Features:
47+
* Support MSSQL DB via ODBC driver ([github.com/lunny/godbc](https://github.com/lunny/godbc));
48+
* Composite Key, using multiple pk xorm tag
49+
* Added Row() API as alternative to Iterate() API for traversing result set, provide similar usages to sql.Rows type
50+
* ORM struct allowed declaration of pointer builtin type as members to allow null DB fields
51+
* Before and After Event processors
52+
53+
Improvements:
54+
* Allowed int/int32/int64/uint/uint32/uint64/string as Primary Key type
55+
* Performance improvement for Get()/Find()/Iterate()
4856

4957
[More changelogs ...](https://github.com/lunny/xorm/blob/master/docs/Changelog.md)
5058

51-
5259
# Installation
5360

5461
If you have [gopm](https://github.com/gpmgo/gopm) installed,

README_CN.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,20 @@ xorm是一个简单而强大的Go语言ORM库. 通过它可以使数据库操作
4141
* MsSql: [github.com/lunny/godbc](https://github.com/lunny/godbc)
4242

4343
## 更新日志
44-
* **v0.2.3** : 改善了文档;提供了乐观锁支持;添加了带时区时间字段支持;Mapper现在分成表名Mapper和字段名Mapper,同时实现了表或字段的自定义前缀后缀;Insert方法的返回值含义从id, err更改为 affected, err,请大家注意;添加了UseBool 和 Distinct函数。
45-
* **v0.2.2** : Postgres驱动新增了对lib/pq的支持;新增了逐条遍历方法Iterate;新增了SetMaxConns(go1.2+)支持,修复了bug若干;
46-
* **v0.2.1** : 新增数据库反转工具,当前支持go和c++代码的生成,详见 [Xorm Tool README](https://github.com/lunny/xorm/blob/master/xorm/README.md); 修复了一些bug.
47-
* **v0.2.0** : 新增 [缓存](https://github.com/lunny/xorm/blob/master/docs/QuickStart.md#120)支持,查询速度提升3-5倍; 新增数据库表和Struct同名的映射方式; 新增Sync同步表结构;
44+
45+
* **v0.3.1**
46+
47+
新特性:
48+
* 支持 MSSQL DB 通过 ODBC 驱动 ([github.com/lunny/godbc](https://github.com/lunny/godbc));
49+
* 通过多个pk标记支持联合主键;
50+
* 新增 Rows() API 用来遍历查询结果,该函数提供了类似sql.Rows的相似用法,可作为 Iterate() API 的可选替代;
51+
* ORM 结构体现在允许内建类型的指针作为成员,使得数据库为null成为可能;
52+
* Before 和 After 支持
53+
54+
改进:
55+
* 允许 int/int32/int64/uint/uint32/uint64/string 作为主键类型
56+
* 查询函数 Get()/Find()/Iterate() 在性能上的改进
57+
4858

4959
[更多更新日志...](https://github.com/lunny/xorm/blob/master/docs/ChangelogCN.md)
5060

docs/Changelog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
## Changelog
22

3+
* **v0.3.1**
4+
5+
Features:
6+
* Support MSSQL DB via ODBC driver ([github.com/lunny/godbc](https://github.com/lunny/godbc));
7+
* Composite Key, using multiple pk xorm tag
8+
* Added Row() API as alternative to Iterate() API for traversing result set, provide similar usages to sql.Rows type
9+
* ORM struct allowed declaration of pointer builtin type as members to allow null DB fields
10+
* Before and After Event processors
11+
12+
Improvements:
13+
* Allowed int/int32/int64/uint/uint32/uint64/string as Primary Key type
14+
* Performance improvement for Get()/Find()/Iterate()
15+
16+
317
* **v0.2.3** : Improved documents; Optimistic Locking support; Timestamp with time zone support; Mapper change to tableMapper and columnMapper & added PrefixMapper & SuffixMapper support custom table or column name's prefix and suffix;Insert now return affected, err instead of id, err; Added UseBool & Distinct;
418
* **v0.2.2** : Postgres drivers now support lib/pq; Added method Iterate for record by record to handler;Added SetMaxConns(go1.2+) support; some bugs fixed.
519
* **v0.2.1** : Added database reverse tool, now support generate go & c++ codes, see [Xorm Tool README](https://github.com/lunny/xorm/blob/master/xorm/README.md); some bug fixed.

docs/ChangelogCN.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
## 更新日志
22

3+
* **v0.3.1**
4+
5+
新特性:
6+
* 支持 MSSQL DB 通过 ODBC 驱动 ([github.com/lunny/godbc](https://github.com/lunny/godbc));
7+
* 通过多个pk标记支持联合主键;
8+
* 新增 Rows() API 用来遍历查询结果,该函数提供了类似sql.Rows的相似用法,可作为 Iterate() API 的可选替代;
9+
* ORM 结构体现在允许内建类型的指针作为成员,使得数据库为null成为可能;
10+
* Before 和 After 支持
11+
12+
改进:
13+
* 允许 int/int32/int64/uint/uint32/uint64/string 作为主键类型
14+
* 查询函数 Get()/Find()/Iterate() 在性能上的改进
15+
316
* **v0.2.3** : 改善了文档;提供了乐观锁支持;添加了带时区时间字段支持;Mapper现在分成表名Mapper和字段名Mapper,同时实现了表或字段的自定义前缀后缀;Insert方法的返回值含义从id, err更改为 affected, err,请大家注意;添加了UseBool 和 Distinct函数。
417
* **v0.2.2** : Postgres驱动新增了对lib/pq的支持;新增了逐条遍历方法Iterate;新增了SetMaxConns(go1.2+)支持,修复了bug若干;
518
* **v0.2.1** : 新增数据库反转工具,当前支持go和c++代码的生成,详见 [Xorm Tool README](https://github.com/lunny/xorm/blob/master/xorm/README.md); 修复了一些bug.

0 commit comments

Comments
 (0)