Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,sqlite,mssql,oracle,cockroach
Go to file
Lunny Xiao ceaef4b7db Merge branch 'master' of github.com:go-xorm/xorm 2014-05-31 12:24:11 +08:00
docs improved docs 2014-05-23 15:01:41 +08:00
examples bug fixed and improved IsTableExist 2014-05-06 14:59:58 +08:00
.gitignore use tabs 2013-12-18 11:31:32 +08:00
.gopmfile renamed import path 2014-04-11 17:16:43 +08:00
CONTRIBUTING.md add code signing tips to CONTRIBUTING.md 2014-05-12 11:29:29 +08:00
LICENSE license 2014-03-23 17:16:11 +08:00
README.md quick start docs link changed 2014-05-05 18:00:10 +08:00
README_CN.md quick start docs link changed 2014-05-05 18:00:10 +08:00
VERSION add Conversion usage on Quickstart docs 2014-05-21 22:34:48 +08:00
doc.go renamed import path 2014-04-11 17:16:43 +08:00
engine.go ShowSQL bug fixed 2014-05-31 12:22:06 +08:00
error.go use tabs 2013-12-18 11:31:32 +08:00
goracle_driver.go flatten the drivers dir 2014-04-14 15:22:01 +08:00
helpers.go bug fixed for go1.3beta 2014-05-12 23:27:15 +08:00
logger.go private Engine.LogSQL and create ILogger interface that is compatible with log/syslog package. Also fixed use of LogError instead of LogSQL 2014-02-12 01:35:26 +08:00
lru_cacher.go tidy up example codes 2014-04-17 17:08:21 +08:00
memroy_store.go flatten caches dir 2014-04-14 15:32:33 +08:00
mssql_dialect.go bug fixed 2014-05-29 16:53:23 +08:00
mymysql_driver.go flatten the drivers dir 2014-04-14 15:22:01 +08:00
mysql_dialect.go bug fixed 2014-05-29 16:53:23 +08:00
mysql_driver.go flatten the drivers dir 2014-04-14 15:22:01 +08:00
oci8_driver.go flatten the drivers dir 2014-04-14 15:22:01 +08:00
odbc_driver.go flatten the drivers dir 2014-04-14 15:22:01 +08:00
oracle_dialect.go bug fixed 2014-05-29 16:53:23 +08:00
postgres_dialect.go bug fixed 2014-05-29 16:53:23 +08:00
pq_driver.go flatten the drivers dir 2014-04-14 15:22:01 +08:00
processors.go add BeforeSet processor and Dump function 2014-05-04 13:53:38 +08:00
rows.go Added NewDB(), DB(), Clone() and removed pool object and other improvements 2014-04-15 11:39:29 +08:00
session.go Satisfies the issue mentioned in #110. Introduces flag AutoResetStatement which is by default true, but setting it to false means the statement doesn't get reset. Calling .Init() or setting the flag back to true ensures normal behaviour. 2014-05-30 16:28:51 +00:00
sqlite3_dialect.go bug fixed & new Import func 2014-05-24 16:05:48 +08:00
sqlite3_driver.go flatten the drivers dir 2014-04-14 15:22:01 +08:00
statement.go add support for Join 2014-05-23 14:18:45 +08:00
xorm.go resolved merge 2014-04-19 00:44:14 +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 schema 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.4.0 RC1 Changes:

    Improvements:

    • Prepared statement cache
    • Add Incr API
    • Specify Timezone Location
  • v0.3.2 Improvements:

    • Add AllCols & MustCols function
    • Add TableName for custom table name

    Bug Fixes:

    • #46
    • #51
    • #53
    • #89
    • #86
    • #92
  • 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/go-xorm/xorm

Or

go get github.com/go-xorm/xorm

Documents

Cases

Discuss

Please visit Xorm on Google Groups

Contributing

If you want to pull request, please see CONTRIBUTING

LICENSE

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