sql: Refactor use of tables

This commit is contained in:
Tom Wiesing 2023-01-09 10:24:24 +01:00
parent 85fe5b5c5a
commit 73d821e320
No known key found for this signature in database
19 changed files with 191 additions and 83 deletions

View file

@ -127,10 +127,14 @@ func (dis *Distillery) allComponents() []initFunc {
ts.BaseURL = "http://" + dis.Upstream.Triplestore
ts.PollInterval = time.Second
}),
manual(func(sql *sql.SQL) {
sql.ServerURL = dis.Upstream.SQL
sql.PollInterval = time.Second
}),
auto[*sql.LockTable],
auto[*sql.InstanceTable],
manual(func(s *solr.Solr) {
s.BaseURL = dis.Upstream.Solr
s.PollInterval = time.Second