Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,sqlite,mssql,oracle,cockroach
Go to file
Nash Tsai e95b3bc807 fixed time struct conversion error 2014-01-02 12:49:02 +08:00
docs add composite primary key doc 2013-12-22 00:08:30 +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
CONTRIBUTING.md add Contributing.md 2013-12-31 10:03:30 +08:00
README.md docs improved 2013-12-25 18:11:28 +08:00
README_CN.md docs improved 2013-12-25 18:11:28 +08:00
VERSION v0.2.3 2013-11-29 11:51:07 +08:00
base_test.go tidy up naming 2014-01-02 12:48:49 +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 resolved #36 2013-12-31 12:22:36 +08:00
error.go use tabs 2013-12-18 11:31:32 +08:00
filter.go add support to int32, int, uint, uint32, uint64 for pk 2013-12-24 18:18:48 +08:00
helpers.go add Session.row2Bean 2013-12-27 02:14:30 +08:00
mapper.go use tabs 2013-12-18 11:31:32 +08:00
mssql.go merge 2013-12-24 14:08:49 +08:00
mssql_test.go add benchmark tests for mssql 2013-12-26 18:23:40 +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 resolved #36 2013-12-31 12:22:36 +08:00
mysql_test.go tidy up null value tests and avoid mymysql and postgres drive time handling 2013-12-25 12:19:00 +08:00
oracle.go bug fixed 2013-12-19 23:28:38 +08:00
pool.go use tabs 2013-12-18 11:31:32 +08:00
postgres.go add support to int32, int, uint, uint32, uint64 for pk 2013-12-24 18:18:48 +08:00
postgres_test.go bug fixed 2013-12-25 17:41:01 +08:00
processors.go use tabs 2013-12-18 11:31:32 +08:00
rows.go add Session.row2Bean 2013-12-27 02:14:30 +08:00
session.go fixed time struct conversion error 2014-01-02 12:49:02 +08:00
sqlite3.go add support to int32, int, uint, uint32, uint64 for pk 2013-12-24 18:18:48 +08:00
sqlite3_test.go use tabs 2013-12-18 11:31:32 +08:00
statement.go resolved #36 2013-12-31 12:22:36 +08:00
table.go merge 2013-12-31 11:44:11 +08:00
xorm.go merge mssql support 2013-12-20 15:11:56 +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

Todo

Todo List

Discuss

Please visit Xorm on Google Groups

Contributors

LICENSE

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