CHANGELOG.md in duckdb-1.1.2.0 vs CHANGELOG.md in duckdb-1.1.2.1

- old
+ new

@@ -1,9 +1,24 @@ # Changelog All notable changes to this project will be documented in this file. # Unreleased +# 1.1.2.1 - 2024-11-04 +- `DuckDB::Connection#query` accepts multiple SQL statement. + - When multiple SQL statements are given, `DuckDB::Connection#query` returns the last statement result. + - `DuckDB::Connection#query` does not support multiple SQL statements with bind parameters. If you pass 2 or more argument, + `DuckDB::Connection#query` will regard first argument as only one SQL statement and the rest as bind parameters. +- add `DuckDB::ExtracteStatements#each` method. +- add `DuckDB::ExtracteStatementsImpl#destroy` method. +- add `DuckDB::PreparedStatement#prepare`. +- `DuckDB::Connection#prepared_statement` accepts block and calls `PreparedStatement#destroy` after block executed. + ```ruby + con.prepared_statement('SELECT * FROM table WHERE id = ?') do |stmt| + stmt.bind(1) + stmt.execute + end + ``` # 1.1.2.0 - 2024-10-20 - bump duckdb to 1.1.2. - add `DuckDB::PreparedStatement#destroy`. - `DuckDB::Connection#query`, `DuckDB::Connection#async_query`, `DuckDB::Connection#async_query_stream` call `DuckDB::PreparedStatement#destroy` to free the prepared statement immediately (#775, #781).