opensensorhub / osh-core

OpenSensorHub Core Modules
http://docs.opensensorhub.org
Mozilla Public License 2.0
32 stars 16 forks source link

Automatic DB Numbering #171

Closed nickgaray closed 3 years ago

nickgaray commented 3 years ago

DB configuration should automatically assign a DB number to a new DB Storage instance.

By default the interface should have a monotonically increasing db number count and assign next "free" number to a new DB config. In this manner the first one would get 1 as its DB number, and then the count increase by 1. When shutdown and reloaded it OSH looks for largest db number in config.json and adds 1 to it to assign to any possible new db and continue from there.