2.6 KiB
2.6 KiB
Xorm is a simple and powerful ORM for Go.
Features
-
Struct <-> Table Mapping Support
-
Chainable APIs
-
Transaction Support
-
Both ORM and raw SQL Operation Support
-
Sync database sechmea Support
-
Query Cache speed up read
-
Database Reverse support, See Xorm Tool README
-
Simple cascade loading support
Drivers Support
Drivers for Go's sql package which currently support database/sql includes:
-
MyMysql: github.com/ziutek/mymysql/godrv
-
SQLite: github.com/mattn/go-sqlite3
-
Postgres: github.com/lib/pq
-
Postgres: github.com/bylevel/pq
Changelog
- v0.2.2 : Postgres drivers now support lib/pq; Added method Iterate for record by record to handler;Added 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;
Installation
go get github.com/lunny/xorm
Documents
Cases
Discuss
Please visit Xorm on Google Groups
LICENSE
BSD License http://creativecommons.org/licenses/BSD/