Commit graph

4 commits

Author SHA1 Message Date
Matthew Nickson
bc6f0f491f
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>
2022-03-16 22:49:18 +00:00
Matthew Nickson
4a28486f73
Changed to flatfile schema
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>
2022-03-14 18:01:52 +00:00
Matthew Nickson
25588b5000
Changed datatypes for some fields
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
2022-03-13 22:28:48 +00:00
Matthew Nickson
71ff13b085
Created database schema
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
2022-03-13 11:37:13 +00:00