good morning!!!!

Skip to content
Snippets Groups Projects
Commit df0e1744 authored by José Carlos Nieto's avatar José Carlos Nieto
Browse files

Fixing mongo adapter test.

parent 543b30d6
Branches
Tags
No related merge requests found
...@@ -52,9 +52,12 @@ func init() { ...@@ -52,9 +52,12 @@ func init() {
} }
// Open stablishes a new connection to a SQL server. // Open stablishes a new connection to a SQL server.
func Open(settings db.ConnectionURL) (Database, error) { func Open(settings db.ConnectionURL) (db.Database, error) {
d := &Source{} d := &Source{}
return d.Open(settings) if err := d.Open(settings); err != nil {
return nil, err
}
return d, nil
} }
func (s *Source) ConnectionURL() db.ConnectionURL { func (s *Source) ConnectionURL() db.ConnectionURL {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment