marcboeker / go-duckdb

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

Append rows using sql.Null* types #89

Open mihelich opened 1 year ago

mihelich commented 1 year ago

Appender.AppendRowArray doesn't recognize the sql.Null* value types like sql.NullString. Clients can provide a driver.Value that is either nil (to insert NULL) or a fundamental type, but the sql.Null* types are more readable and type-safe.