mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-15 11:00:14 +00:00
98263a7de6
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
15 lines
411 B
Go
15 lines
411 B
Go
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
|
|
}
|