connect
connect copied to clipboard
Batch input to duckdb?
Is there an existing method to do batch inserts into duckdb? Or any plans for something like that?
I would like to get logs into duckdb so we can analyze log data in a simple to host/maintain solution.
Hey @jeberly, unfortunately, the DuckDB Go driver links against the DuckDB binaries through CGo, which is a deal-breaker for Benthos, since the project goal is to keep the main build CGo-free. However, you can create a custom plugin where you import Benthos as a library along with your plugin to create a custom binary.
Since their library is compatible with database/sql, ideally you should be able to inject a new driver for the various sql_* components in Benthos, but that's not supported right now, since the driver list can't be customised and there's no way to specify the placeholder format or if a transaction statement should be used or not. Right now, the simplest approach is to copy whatever component(s) you need from here and adjust them as needed to create your own plugin.
Thanks! Good idea with copying an existing plugin.
Also you can use command process with the duckdb cli.
Waiting for someone to implement a DuckDB driver with purego so we can add it to Redpanda Connect ⌛ 😊
Waiting for someone to implement a DuckDB driver with purego so we can add it to Redpanda Connect ⌛ 😊
https://github.com/fpt/go-pduckdb