marcboeker / go-duckdb

go-duckdb provides a database/sql driver for the DuckDB database engine.
MIT License
623 stars 97 forks source link

Unify Appender error handling #191

Closed taniabogatsch closed 5 months ago

taniabogatsch commented 5 months ago

This is the first follow-up PR to https://github.com/marcboeker/go-duckdb/pull/187.

It focuses on unifying the error handling in the Appender. Additionally, errors in the Appender no longer kill the application (panic) and have a unified format.

I'm happy that even with the introduction of new tests, this PR decreases the overall code size of the Appender and its tests. 😄 Sorry for the big PR - I've tried to keep the complexity low. Many changes are repetitive (using new functions) and structural.

Other changes