Quantcast

XORM(ORM Framework)

XORM(ORM Framework) wiki, XORM(ORM Framework) history, XORM(ORM Framework) review, XORM(ORM Framework) facts XORM(ORM Framework) news, what is XORM(ORM Framework) XORM(ORM Framework) wikipedia
XORM(ORM Framework) information, XORM(ORM Framework) definition, XORM(ORM Framework) timeline, XORM(ORM Framework) location

Introduction

Xorm[10][11]​ 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 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:

 

  • Mysql: github.com/go-sql-driver/mysql[1]
  • MyMysql: github.com/ziutek/mymysql/godrv[2]
  • Postgres: github.com/lib/pq[3]
  • Tidb: github.com/pingcap/tidb[4]
  • SQLite: github.com/mattn/go-sqlite3[5]
  • MsSql: github.com/denisenkom/go-mssqldb[6]
  • MsSql: github.com/lunny/godbc[7]
  • Oracle: github.com/mattn/go-oci8 [8]
  • ql: github.com/cznic/ql [9]

Installation

If you have gopm installed

 

gopm get github.com/go-xorm/xorm

 

Or use go get

 

go get github.com/go-xorm/xorm

Run and setup

  1. Init orm:  orm, err := xorm.NewEngine("sqlite3", "./test.db")
  2. Sync database structs: err = orm.Sync(new(User), new(Article))

 

All information for XORM(ORM Framework)'s wiki comes from the below links. Any source is valid, including Twitter, Facebook, Instagram, and LinkedIn. Pictures, videos, biodata, and files relating to XORM(ORM Framework) are also acceptable encyclopedic sources.
This is a discussion about XORM(ORM Framework). Concerns about the topic, its accuracy, inclusion of information etc. should be discussed here. Off-topic discussion not pertaining to XORM(ORM Framework) or this wiki will be removed.
Other wiki pages related to XORM(ORM Framework).
Created: 05/02/2018 12:39:59 PM UTC
Last Modified: 05/02/2018 12:58:07 PM UTC