This pull request converts DuckDBResult to a class instead of a struct. This is to avoid copying DuckDBResult at some steps. This could alternatively be done by adding ref to all the methods taking a DuckDBResult.
This changes the interface for the methods that "returns" a DuckDBResult from:
var queryResult = new DuckDBResult();
result = DuckDBQuery(connection, "CREATE TABLE integers(foo INTEGER, bar INTEGER);", out queryResult);
or alternatively:
result = DuckDBQuery(connection, "CREATE TABLE integers(foo INTEGER, bar INTEGER);", out var queryResult);
to:
var queryResult = new DuckDBResult();
result = DuckDBQuery(connection, "CREATE TABLE integers(foo INTEGER, bar INTEGER);", queryResult);
This change will also enable passing null instead of an instance of DuckDBResult.
This pull request converts DuckDBResult to a class instead of a struct. This is to avoid copying DuckDBResult at some steps. This could alternatively be done by adding ref to all the methods taking a DuckDBResult.
This changes the interface for the methods that "returns" a DuckDBResult from:
or alternatively:
to:
This change will also enable passing
null
instead of an instance of DuckDBResult.