Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,sqlite,mssql,oracle,cockroach
Go to file
Lunny Xiao bb6a9c24fa multiple In() supports 2013-12-11 16:27:33 +08:00
docs bug fixed for doc 2013-12-08 22:55:13 +08:00
examples replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
tests implemented ddl import 2013-12-04 18:39:22 +08:00
xorm replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +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 multiple In() supports 2013-12-11 16:27:33 +08:00
benchmark_base_test.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +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 replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +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 replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
mymysql.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
mymysql_test.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
mysql.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
mysql_test.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
pool.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
postgres.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
postgres_test.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
processors.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
session.go multiple In() supports 2013-12-11 16:27:33 +08:00
sqlite3.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
sqlite3_test.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
statement.go multiple In() supports 2013-12-11 16:27:33 +08:00
table.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +08:00
xorm.go replace tab to 4 spaces for all codes 2013-12-09 10:29:23 +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/