The specific datastore backend to use can now be set by using
command line options or by using environment variables. The default
datastore backend is still jsondb but mysql can now also be used as a
backend. Environment variables have also been added to control settings
relevant to the database. SQL queries are made by directly accessing the
database/sql API. TLS is also supported.
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
The DB schema has been changed to use a flatfile design in order to
reduce the complexity of queries and data processing. As no relational
features are required there is no point in using a relational schema.
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>