summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-pg/pg/v10/orm/result.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-pg/pg/v10/orm/result.go')
-rw-r--r--vendor/github.com/go-pg/pg/v10/orm/result.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/go-pg/pg/v10/orm/result.go b/vendor/github.com/go-pg/pg/v10/orm/result.go
new file mode 100644
index 000000000..9d82815ef
--- /dev/null
+++ b/vendor/github.com/go-pg/pg/v10/orm/result.go
@@ -0,0 +1,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
+}