Added MySQL as a datastore

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>
This commit is contained in:
Matthew Nickson 2022-03-16 22:49:18 +00:00
parent 4a28486f73
commit bc6f0f491f
No known key found for this signature in database
GPG key ID: BF229DCFD4748E05
6 changed files with 543 additions and 9 deletions

View file

@ -22,6 +22,7 @@ var (
DBDatabase string
DBUsername string
DBPassword string
DBTLS string
)
const (