mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 09:11:28 +00:00
update docs
This commit is contained in:
parent
ad2965bbf9
commit
fc528c51a3
@ -75,26 +75,26 @@ o = orm.NewOrm() // 创建一个 Ormer
|
|||||||
```
|
```
|
||||||
|
|
||||||
* type Ormer interface {
|
* type Ormer interface {
|
||||||
* [Read(Modeler) error](Object.md#Read)
|
* [Read(Modeler) error](Object.md#read)
|
||||||
* [Insert(Modeler) (int64, error)](Object.md#Insert)
|
* [Insert(Modeler) (int64, error)](Object.md#insert)
|
||||||
* [Update(Modeler) (int64, error)](Object.md#Update)
|
* [Update(Modeler) (int64, error)](Object.md#update)
|
||||||
* [Delete(Modeler) (int64, error)](Object.md#Delete)
|
* [Delete(Modeler) (int64, error)](Object.md#delete)
|
||||||
* [M2mAdd(Modeler, string, ...interface{}) (int64, error)](Object.md#M2mAdd)
|
* [M2mAdd(Modeler, string, ...interface{}) (int64, error)](Object.md#m2madd)
|
||||||
* [M2mDel(Modeler, string, ...interface{}) (int64, error)](Object.md#M2mDel)
|
* [M2mDel(Modeler, string, ...interface{}) (int64, error)](Object.md#m2mdel)
|
||||||
* [LoadRel(Modeler, string) (int64, error)](Object.md#LoadRel)
|
* [LoadRel(Modeler, string) (int64, error)](Object.md#loadRel)
|
||||||
* [QueryTable(interface{}) QuerySeter](#QueryTable)
|
* [QueryTable(interface{}) QuerySeter](#querytable)
|
||||||
* [Using(string) error](#Using)
|
* [Using(string) error](#using)
|
||||||
* [Begin() error](Transaction.md#Begin)
|
* [Begin() error](Transaction.md#begin)
|
||||||
* [Commit() error](Transaction.md#Commit)
|
* [Commit() error](Transaction.md#commit)
|
||||||
* [Rollback() error](Transaction.md#Rollback)
|
* [Rollback() error](Transaction.md#rollback)
|
||||||
* [Raw(string, ...interface{}) RawSeter](#Raw)
|
* [Raw(string, ...interface{}) RawSeter](#raw)
|
||||||
* [Driver() Driver](#Driver)
|
* [Driver() Driver](#driver)
|
||||||
* }
|
* }
|
||||||
|
|
||||||
|
|
||||||
#### QueryTable
|
#### QueryTable
|
||||||
|
|
||||||
传入表名,或者 Modeler 对象,返回一个 [QuerySeter](Query.md#QuerySeter)
|
传入表名,或者 Modeler 对象,返回一个 [QuerySeter](Query.md#queryseter)
|
||||||
|
|
||||||
```go
|
```go
|
||||||
o := orm.NewOrm()
|
o := orm.NewOrm()
|
||||||
|
@ -133,22 +133,22 @@ qs.Filter("profile__isnull", false)
|
|||||||
QuerySeter 当前支持的方法
|
QuerySeter 当前支持的方法
|
||||||
|
|
||||||
* type QuerySeter interface {
|
* type QuerySeter interface {
|
||||||
* [Filter(string, ...interface{}) QuerySeter](#Filter)
|
* [Filter(string, ...interface{}) QuerySeter](#filter)
|
||||||
* [Exclude(string, ...interface{}) QuerySeter](#Exclude)
|
* [Exclude(string, ...interface{}) QuerySeter](#exclude)
|
||||||
* [SetCond(*Condition) QuerySeter](#SetCond)
|
* [SetCond(*Condition) QuerySeter](#setcond)
|
||||||
* [Limit(int, ...int64) QuerySeter](#Limit)
|
* [Limit(int, ...int64) QuerySeter](#limit)
|
||||||
* [Offset(int64) QuerySeter](#Offset)
|
* [Offset(int64) QuerySeter](#offset)
|
||||||
* [OrderBy(...string) QuerySeter](#OrderBy)
|
* [OrderBy(...string) QuerySeter](#orderby)
|
||||||
* [RelatedSel(...interface{}) QuerySeter](#RelatedSel)
|
* [RelatedSel(...interface{}) QuerySeter](#relatedsel)
|
||||||
* [Count() (int64, error)](#Count)
|
* [Count() (int64, error)](#count)
|
||||||
* [Update(Params) (int64, error)](#Update)
|
* [Update(Params) (int64, error)](#update)
|
||||||
* [Delete() (int64, error)](#Delete)
|
* [Delete() (int64, error)](#delete)
|
||||||
* [PrepareInsert() (Inserter, error)](#PrepareInsert)
|
* [PrepareInsert() (Inserter, error)](#prepareinsert)
|
||||||
* [All(interface{}) (int64, error)](#All)
|
* [All(interface{}) (int64, error)](#all)
|
||||||
* [One(Modeler) error](#One)
|
* [One(Modeler) error](#one)
|
||||||
* [Values(*[]Params, ...string) (int64, error)](#Values)
|
* [Values(*[]Params, ...string) (int64, error)](#values)
|
||||||
* [ValuesList(*[]ParamsList, ...string) (int64, error)](#ValuesList)
|
* [ValuesList(*[]ParamsList, ...string) (int64, error)](#valueslist)
|
||||||
* [ValuesFlat(*ParamsList, string) (int64, error)](#ValuesFlat)
|
* [ValuesFlat(*ParamsList, string) (int64, error)](#valuesflat)
|
||||||
* }
|
* }
|
||||||
|
|
||||||
每个返回 QuerySeter 的 api 调用时都会新建一个 QuerySeter,不影响之前创建的。
|
每个返回 QuerySeter 的 api 调用时都会新建一个 QuerySeter,不影响之前创建的。
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
4. [对象操作](Object.md)
|
4. [对象操作](Object.md)
|
||||||
5. [复杂查询](Query.md)
|
5. [复杂查询](Query.md)
|
||||||
- [查询使用的表达式语法](Query.md#expr)
|
- [查询使用的表达式语法](Query.md#expr)
|
||||||
- [查询支持的操作符号](Query.md#Operators)
|
- [查询支持的操作符号](Query.md#operators)
|
||||||
- [QuerySeter 接口](Query.md#QuerySeter)
|
- [QuerySeter 接口](Query.md#queryseter)
|
||||||
6. Raw
|
6. Raw
|
||||||
7. Transaction
|
7. Transaction
|
||||||
8. Faq
|
8. Faq
|
||||||
|
Loading…
Reference in New Issue
Block a user