diegogub / aranGO

Golang driver for ArangoDB
Apache License 2.0
125 stars 31 forks source link

How about adding (s *Session) Errors() []error? #30

Open hnakamur opened 8 years ago

hnakamur commented 8 years ago

I noticed an error is ignored in (db Database) Col(name string) *Collection at https://github.com/diegogub/aranGO/blob/e183a93bbf438b18ae14245b7892acdd7dd3b107/database.go#L164

However if we change the signature to (db Database) Col(name string) (*Collection, error), it's harder to use.

So, how about adding (s *Session) Errors() []error? For example, gorm (which is an object-relational mapping library) has the following methods:

diegogub commented 8 years ago

@hnakamur good idea. I have to check other places too I guess.