migrator: Add an escape hatch to allow arbitrary config options

Previously only SQL settings and the 'path' for internal storage could
be set, and only for SQL and internal storage.

input {
	type = "whatever";
	config = {
		whatever_foobar = "something"
	}
}
This commit is contained in:
Kim Alvefur 2023-11-27 17:19:16 +01:00
parent 8a2e65d5b7
commit 2f2551e6d2

View file

@ -168,6 +168,11 @@ local function prepare_config(host, conf)
elseif conf.type == "sql" then
cm.set(host, "sql", conf);
end
if type(conf.config) == "table" then
for option, value in pairs(conf.config) do
cm.set(host, option, value);
end
end
end
local function get_driver(host, conf)