proxy.golang.org : github.com/go-xOrm/xOrm : v0.7.1
Package xorm is a simple and powerful ORM for Go. Make sure you have installed Go 1.6+ and then: Firstly, we should new an engine for a database Method NewEngine's parameters is the same as sql.Open. It depends drivers' implementation. Generally, one engine for an application is enough. You can set it as package variable. XORM also support raw SQL execution: 1. query a SQL string, the returned results is []map[string][]byte 2. execute a SQL string, the returned results There are 8 major ORM methods and many helpful methods to use to operate database. 1. Insert one or multiple records to database 2. Query one record or one variable from database 3. Query multiple records from database 4. Query multiple records and record by record handle, there two methods, one is Iterate, another is Rows 5. Update one or more records 6. Delete one or more records, Delete MUST has condition 7. Count records 8. Sum records The above 8 methods could use with condition methods chainable. Attention: the above 8 methods should be the last chainable method. 1. ID, In 2. Where, And, Or 3. OrderBy, Asc, Desc 4. Limit, Top 5. SQL, let you custom SQL 6. Cols, Omit, Distinct 7. Join, GroupBy, Having More usage, please visit http://xorm.io/docs
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/go-x%21orm/x%21orm@v0.7.1
Published:
Indexed:
Related tag:
v0.7.1
- github.com/cockroachdb/apd v1.1.0
- github.com/davecgh/go-spew v1.1.1
- github.com/denisenkom/go-mssqldb v0.0.0-20181014144952-4e0d7dc8888f
- github.com/go-sql-driver/mysql v1.4.0
- github.com/go-xorm/builder v0.3.2
- github.com/go-xorm/core v0.6.0
- github.com/go-xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a
- github.com/jackc/fake v0.0.0-20150926172116-812a484cc733
- github.com/jackc/pgx v3.2.0+incompatible
- github.com/kr/pretty v0.1.0
- github.com/lib/pq v1.0.0
- github.com/mattn/go-sqlite3 v1.9.0
- github.com/pkg/errors v0.8.0
- github.com/pmezard/go-difflib v1.0.0
- github.com/satori/go.uuid v1.2.0
- github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
- github.com/stretchr/testify v1.2.2
- github.com/ziutek/mymysql v1.5.4
- gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
- gopkg.in/stretchr/testify.v1 v1.2.2