137641f090
The Add method on the multinode DB interface accepts a set of parameters which are already fields in the nodes.Node struct excluding the name field. When adding a new node, you're forced to call UpdateName() method after calling the Add() method in order to save a node and update the name. This change allows passing the nodes.Node entity which includes the name field. With this, a new node can be added together with the name without invoking the UpdateName() method. Change-Id: I281ec628dffaade35d6db4479a84f39636200072 |
||
---|---|---|
.. | ||
dbx | ||
multinodedbtest | ||
testdata | ||
database.go | ||
migrate_test.go | ||
migrate.go | ||
nodes.go |