Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,sqlite,mssql,oracle,cockroach
Go to file
Lunny Xiao b66e7aa067 use core.DB instead of sql.DB 2014-02-11 14:59:04 +08:00
caches move tests to tests subdir & refactoring 2014-01-25 10:07:11 +08:00
core use core.DB instead of sql.DB 2014-02-11 14:59:04 +08:00
dialects move tests to tests subdir & refactoring 2014-01-25 10:07:11 +08:00
docs improved docs 2014-01-15 10:29:56 +08:00
drivers new architecture 2014-01-07 17:33:27 +08:00
examples bug fixed 2014-01-25 10:31:07 +08:00
tests move tests to tests subdir & refactoring 2014-01-25 10:07:11 +08:00
xorm bug fixed 2014-01-25 10:31:07 +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 dos2unix format 2014-01-07 17:21:02 +08:00
README_CN.md dos2unix format 2014-01-07 17:21:02 +08:00
VERSION doc & version 2014-01-25 10:50:42 +08:00
doc.go doc & version 2014-01-25 10:50:42 +08:00
engine.go use core.DB instead of sql.DB 2014-02-11 14:59:04 +08:00
error.go use tabs 2013-12-18 11:31:32 +08:00
helpers.go use core.DB instead of sql.DB 2014-02-11 14:59:04 +08:00
pool.go use core.DB instead of sql.DB 2014-02-11 14:59:04 +08:00
processors.go use tabs 2013-12-18 11:31:32 +08:00
rows.go use core.DB instead of sql.DB 2014-02-11 14:59:04 +08:00
session.go use core.DB instead of sql.DB 2014-02-11 14:59:04 +08:00
statement.go move tests to tests subdir & refactoring 2014-01-25 10:07:11 +08:00
xorm.go a little performance improved 2014-02-10 15:36:25 +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.3.1

    Features:

    • Support MSSQL DB via ODBC driver (github.com/lunny/godbc);
    • Composite Key, using multiple pk xorm tag
    • Added Row() API as alternative to Iterate() API for traversing result set, provide similar usages to sql.Rows type
    • ORM struct allowed declaration of pointer builtin type as members to allow null DB fields
    • Before and After Event processors

    Improvements:

    • Allowed int/int32/int64/uint/uint32/uint64/string as Primary Key type
    • Performance improvement for Get()/Find()/Iterate()

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

If you want to pull request, please see CONTRIBUTING

LICENSE

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