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