Skip to content

Commit

Permalink
Add local database connection if no conn is set
Browse files Browse the repository at this point in the history
  • Loading branch information
mblaschke committed Nov 1, 2017
1 parent 9c454ec commit c0fb457
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sync/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ func (database *Database) ApplyDefaults(server *Server) {
if database.Connection == nil {
database.Connection = server.Connection.Clone()
}

// default local connection
if database.Local.Connection == nil {
database.Local.Connection = &YamlCommandBuilderConnection{}
}
}

func (database *Database) GetType() (dbtype string) {
Expand Down

0 comments on commit c0fb457

Please sign in to comment.