Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,sqlite,mssql,oracle,cockroach
Go to file
Nash Tsai c2fe9ee0d5 resolved merger from upstream 2013-12-18 15:26:48 +08:00
docs improved docs 2013-12-13 11:15:54 +08:00
examples bug fixed 2013-12-12 14:33:26 +08:00
tests implemented ddl import 2013-12-04 18:39:22 +08:00
xorm bug fixed 2013-12-12 14:33:26 +08:00
.gitignore use tabs 2013-12-18 11:31:32 +08:00
.gopmfile Add And and Or method for query condition 2013-11-09 21:13:16 +08:00
README.md merge null field codes 2013-12-08 21:40:58 +08:00
README_CN.md merge null field codes 2013-12-08 21:40:58 +08:00
VERSION v0.2.3 2013-11-29 11:51:07 +08:00
base_test.go use tabs 2013-12-18 11:31:32 +08:00
benchmark.sh add benchmark tests 2013-12-16 23:42:31 +08:00
benchmark_base_test.go use tabs 2013-12-18 11:31:32 +08:00
cache.go use tabs 2013-12-18 11:31:32 +08:00
doc.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
engine.go use tabs 2013-12-18 11:31:32 +08:00
error.go use tabs 2013-12-18 11:31:32 +08:00
filter.go use tabs 2013-12-18 11:31:32 +08:00
helpers.go use tabs 2013-12-18 11:31:32 +08:00
mapper.go use tabs 2013-12-18 11:31:32 +08:00
mymysql.go use tabs 2013-12-18 11:31:32 +08:00
mymysql_test.go use tabs 2013-12-18 11:31:32 +08:00
mysql.go use tabs 2013-12-18 11:31:32 +08:00
mysql_test.go use tabs 2013-12-18 11:31:32 +08:00
pool.go use tabs 2013-12-18 11:31:32 +08:00
postgres.go use tabs 2013-12-18 11:31:32 +08:00
postgres_test.go use tabs 2013-12-18 11:31:32 +08:00
processors.go use tabs 2013-12-18 11:31:32 +08:00
session.go use tabs 2013-12-18 11:31:32 +08:00
sqlite3.go use tabs 2013-12-18 11:31:32 +08:00
sqlite3_test.go use tabs 2013-12-18 11:31:32 +08:00
statement.go resolved merger from upstream 2013-12-18 15:26:48 +08:00
table.go use tabs 2013-12-18 11:31:32 +08:00
xorm.go use tabs 2013-12-18 11:31:32 +08:00

README.md

中文

Xorm is a simple and powerful ORM for Go.

Build Status Go Walker Bitdeli Badge

Features

  • Struct <-> Table Mapping Support

  • Chainable APIs

  • Transaction Support

  • Both ORM and raw SQL operation Support

  • Sync database sechmea Support

  • Query Cache speed up

  • Database Reverse support, See Xorm Tool README

  • Simple cascade loading support

  • Optimistic Locking support

Drivers Support

Drivers for Go's sql package which currently support database/sql includes:

Changelog

  • 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;
  • v0.2.2 : Postgres drivers now support lib/pq; Added method Iterate for record by record to handlerAdded SetMaxConns(go1.2+) support; some bugs fixed.
  • v0.2.1 : Added database reverse tool, now support generate go & c++ codes, see Xorm Tool README; some bug fixed.
  • 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;

More changelogs ...

Installation

If you have gopm installed,

gopm get github.com/lunny/xorm

Or

go get github.com/lunny/xorm

Documents

Cases

Discuss

Please visit Xorm on Google Groups

Contributors

LICENSE

BSD License http://creativecommons.org/licenses/BSD/