Skip to content

Commit c0fb457

Browse files
committed
Add local database connection if no conn is set
1 parent 9c454ec commit c0fb457

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sync/database.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ func (database *Database) ApplyDefaults(server *Server) {
1010
if database.Connection == nil {
1111
database.Connection = server.Connection.Clone()
1212
}
13+
14+
// default local connection
15+
if database.Local.Connection == nil {
16+
database.Local.Connection = &YamlCommandBuilderConnection{}
17+
}
1318
}
1419

1520
func (database *Database) GetType() (dbtype string) {

0 commit comments

Comments
 (0)