blob: 9d82815efc766728d78622f51a4119f1e362ff43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package orm
// Result summarizes an executed SQL command.
type Result interface {
Model() Model
// RowsAffected returns the number of rows affected by SELECT, INSERT, UPDATE,
// or DELETE queries. It returns -1 if query can't possibly affect any rows,
// e.g. in case of CREATE or SHOW queries.
RowsAffected() int
// RowsReturned returns the number of rows returned by the query.
RowsReturned() int
}
|