add features on README
This commit is contained in:
parent
545df1a7a7
commit
431ac7b5d2
13
README.md
13
README.md
|
@ -1,6 +1,5 @@
|
||||||
# xorm
|
# xorm
|
||||||
----------
|
----------
|
||||||
|
|
||||||
[中文](./README_CN.md)
|
[中文](./README_CN.md)
|
||||||
|
|
||||||
xorm is an ORM for Go. It lets you map Go structs to tables in a database.
|
xorm is an ORM for Go. It lets you map Go structs to tables in a database.
|
||||||
|
@ -13,7 +12,17 @@ Drivers for Go's sql package which support database/sql includes:
|
||||||
|
|
||||||
Mysql: [github.com/Go-SQL-Driver/MySQL](https://github.com/Go-SQL-Driver/MySQL)
|
Mysql: [github.com/Go-SQL-Driver/MySQL](https://github.com/Go-SQL-Driver/MySQL)
|
||||||
|
|
||||||
SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
||||||
|
## Features
|
||||||
|
1.Struct<->Table Mapping Support Names and Tags
|
||||||
|
|
||||||
|
2.Transaction Support
|
||||||
|
|
||||||
|
3.SQL Execute Support
|
||||||
|
|
||||||
|
4.Simple usage
|
||||||
|
|
||||||
|
5.Support Id, Where or Sturct as query conditions
|
||||||
|
|
||||||
## Installing xorm
|
## Installing xorm
|
||||||
|
|
||||||
|
|
13
README_CN.md
13
README_CN.md
|
@ -1,6 +1,5 @@
|
||||||
# xorm
|
# xorm
|
||||||
----------
|
----------
|
||||||
|
|
||||||
[English](README.md)
|
[English](README.md)
|
||||||
|
|
||||||
xorm是一个Go语言的ORM库. 通过它可以简化对数据库的操作。
|
xorm是一个Go语言的ORM库. 通过它可以简化对数据库的操作。
|
||||||
|
@ -13,7 +12,17 @@ xorm是一个Go语言的ORM库. 通过它可以简化对数据库的操作。
|
||||||
|
|
||||||
Mysql: [github.com/Go-SQL-Driver/MySQL](https://github.com/Go-SQL-Driver/MySQL)
|
Mysql: [github.com/Go-SQL-Driver/MySQL](https://github.com/Go-SQL-Driver/MySQL)
|
||||||
|
|
||||||
SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
||||||
|
## 特性
|
||||||
|
1.支持Struct和数据库表之间的映射,映射方式支持命名约定和Tag两种方式
|
||||||
|
|
||||||
|
2.事务支持
|
||||||
|
|
||||||
|
3.同时支持原始SQL语句的混合执行
|
||||||
|
|
||||||
|
4.使用连写来简化调用
|
||||||
|
|
||||||
|
5.支持使用Id,Where和结构体等方式作为条件
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue