connect_prefix = 'https://'
end
local ip_addr = upstream:get_addr():to_string(true)
- local database = params.database or 'default'
+ local database = settings.database or 'default'
http_params.url = string.format('%s%s/?database=%s&default_format=JSONEachRow',
connect_prefix, ip_addr, escape_spaces(database))
end
connect_prefix = 'https://'
end
local ip_addr = upstream:get_addr():to_string(true)
- local database = params.database or 'default'
+ local database = settings.database or 'default'
http_params.url = string.format('%s%s/?database=%s&default_format=JSONEachRow',
connect_prefix, ip_addr, escape_spaces(database))
end
connect_prefix = 'https://'
end
local ip_addr = upstream:get_addr():to_string(true)
- local database = params.database or 'default'
+ local database = settings.database or 'default'
http_params.url = string.format('%s%s/?database=%s&query=%s%%20FORMAT%%20TabSeparated',
connect_prefix,
ip_addr,
connect_prefix = 'https://'
end
local ip_addr = upstream:get_addr():to_string(true)
- local database = params.database or 'default'
+ local database = settings.database or 'default'
http_params.url = string.format('%s%s/?database=%s&default_format=JSONEachRow',
connect_prefix, ip_addr, escape_spaces(database))
end
connect_prefix = 'https://'
end
local ip_addr = upstream:get_addr():to_string(true)
- local database = params.database or 'default'
+ local database = settings.database or 'default'
http_params.url = string.format('%s%s/?database=%s&default_format=JSONEachRow',
connect_prefix, ip_addr, escape_spaces(database))
end