Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hnakamur opened this issue Jul 18, 2016 · 1 comment
Open

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

hnakamur opened this issue Jul 18, 2016 · 1 comment

Comments

@hnakamur
Copy link

I noticed an error is ignored in (db Database) Col(name string) *Collection at

db.CreateCollection(&col)

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants