XORM - eXtra ORM for Go
XORM is a Simple & Powerful ORM Framework for Go Programming Language
![Baseline](/web/20211024162709im_/https://xorm.io/img/kube/icon-baseline.png)
Easy Usage
By join function design, use less codes to finish DB operations.
![Typography](/web/20211024162709im_/https://xorm.io/img/kube/icon-typo.png)
Rich Features
Support cache, transaction, Optimistic Lock, Multiple Database support, Reverse and etc.
![Minimalism](/web/20211024162709im_/https://xorm.io/img/kube/icon-minimalism.png)
Open Source
Join, share and learn by involving this great project and be a contributor.
Installation
Install Library
go get xorm.io/xorm
Xorm Tool
go get xorm.io/cmd/xorm
Source Documents
Run
Initilization
orm, err := xorm.NewEngine("sqlite3", "./test.db")
Synchronize
err = orm.Sync2(new(User), new(Article))
Now, you get it.
Databases supported
- Mysql: github.com/go-sql-driver/mysql
- MyMysql: github.com/ziutek/mymysql/godrv
- Postgres: github.com/lib/pq
- Tidb: github.com/pingcap/tidb
- SQLite: github.com/mattn/go-sqlite3
- MsSql: github.com/denisenkom/go-mssqldb
- MsSql: github.com/lunny/godbc
- Oracle: github.com/mattn/go-oci8