Rename store Namespace / Prefix options to Database and Table (#1492)
* Rename Namespace to DB, Rename Prefix to table, Remove Suffix Option * Rename options * Rename options * Add store_table option * Table per service, not Database per service
This commit is contained in:
@@ -299,12 +299,12 @@ func (s *sqlStore) configure() error {
|
||||
s.options.Nodes = []string{"localhost:26257"}
|
||||
}
|
||||
|
||||
namespace := s.options.Namespace
|
||||
namespace := s.options.Database
|
||||
if len(namespace) == 0 {
|
||||
namespace = DefaultNamespace
|
||||
}
|
||||
|
||||
prefix := s.options.Prefix
|
||||
prefix := s.options.Table
|
||||
if len(prefix) == 0 {
|
||||
prefix = DefaultPrefix
|
||||
}
|
||||
|
@@ -28,7 +28,7 @@ func TestSQL(t *testing.T) {
|
||||
db.Close()
|
||||
|
||||
sqlStore := NewStore(
|
||||
store.Namespace("testsql"),
|
||||
store.Database("testsql"),
|
||||
store.Nodes(connection),
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user