@@ -24,17 +24,17 @@ package db
2424// Collection is an interface that defines methods useful for handling tables.
2525type Collection interface {
2626 // Insert inserts a new item into the collection, it accepts one argument
27- // that can be either a map or a struct. If the call suceeds , it returns the
28- // ID of the newly added element as an `interface{}` (the underlying type of
29- // this ID is unknown and depends on the database adapter). The ID returned
30- // by Insert() could be passed directly to Find() to retrieve the newly added
31- // element.
27+ // that can be either a map or a struct. If the call succeeds , it returns the
28+ // ID of the newly added element as an `interface{}` (the actual type of this
29+ // ID depends on both the database adapter and the column that stores this
30+ // ID). The ID returned by Insert() could be passed directly to Find() to
31+ // retrieve the newly added element.
3232 Insert (interface {}) (interface {}, error )
3333
34- // InsertReturning is like Insert() but it updates the passed pointer to map
35- // or struct with the newly inserted element (and with automatic fields, like
36- // IDs, timestamps, etc). This is all done atomically within a transaction.
37- // If the database does not support transactions this method returns
34+ // InsertReturning is like Insert() but it updates the passed map or struct
35+ // with the newly inserted element (and with automatic fields, like IDs,
36+ // timestamps, etc). This is all done atomically within a transaction. If
37+ // the database does not support transactions this method returns
3838 // db.ErrUnsupported.
3939 InsertReturning (interface {}) error
4040
0 commit comments