1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 23:20:54 +00:00

add commit for orm/types.go

This commit is contained in:
nkbai 2015-12-15 19:48:28 +08:00
parent d99c62df1f
commit 3daaaeb32b

View File

@ -246,7 +246,7 @@ type QuerySeter interface {
RowsToStruct(ptrStruct interface{}, keyCol, valueCol string) (int64, error) RowsToStruct(ptrStruct interface{}, keyCol, valueCol string) (int64, error)
} }
// model to model query struct // QueryM2Mer model to model query struct
// all operations are on the m2m table only, will not affect the origin model table // all operations are on the m2m table only, will not affect the origin model table
type QueryM2Mer interface { type QueryM2Mer interface {
// add models to origin models when creating queryM2M. // add models to origin models when creating queryM2M.
@ -282,7 +282,7 @@ type RawPreparer interface {
Close() error Close() error
} }
// raw query seter // RawSeter raw query seter
// create From Ormer.Raw // create From Ormer.Raw
// for example: // for example:
// sql := fmt.Sprintf("SELECT %sid%s,%sname%s FROM %suser%s WHERE id = ?",Q,Q,Q,Q,Q,Q) // sql := fmt.Sprintf("SELECT %sid%s,%sname%s FROM %suser%s WHERE id = ?",Q,Q,Q,Q,Q,Q)