For the same reasons the kiba command line is getting deprecated, I'll instead encourage to pass live connections here, created via a surrounding block:
Sequel.connect(xxx) do |db|
Kiba.run(ETL::MyJob.setup(db: db))
end
This will allow automatic connection closing, which is a better pattern, and also brings more control over how the connection can be tweaked (e.g. extensions).
Today it is possible in Kiba Pro to pass a simple database url string to SQL components (SQL Source, SQL single record Upsert destination, SQL bulk insert / upsert destination), like this:
For the same reasons the
kiba
command line is getting deprecated, I'll instead encourage to pass live connections here, created via a surrounding block:This will allow automatic connection closing, which is a better pattern, and also brings more control over how the connection can be tweaked (e.g. extensions).
Keeping this note as a roadmap item.