Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,sqlite,mssql,oracle,cockroach
Go to file
Lunny Xiao 286b8725ed use 4 spaces replace tab 2013-12-17 17:55:27 +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 merge null field codes 2013-12-08 21:40:58 +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 merge composite key 2013-12-17 09:38:20 +08:00
benchmark.sh add benchmark tests 2013-12-16 23:42:31 +08:00
benchmark_base_test.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
cache.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
doc.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
engine.go merge composite key 2013-12-17 09:38:20 +08:00
error.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
filter.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
helpers.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
mapper.go bug fixed 2013-12-12 14:33:26 +08:00
mymysql.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
mymysql_test.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
mysql.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
mysql_test.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
pool.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
postgres.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
postgres_test.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
processors.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
session.go merge composite key 2013-12-17 09:38:20 +08:00
sqlite3.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
sqlite3_test.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
statement.go merge composite key 2013-12-17 09:38:20 +08:00
table.go use 4 spaces replace tab 2013-12-17 17:55:27 +08:00
xorm.go use 4 spaces replace tab 2013-12-17 17:55:27 +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/