diff --git a/CHANGELOG.md b/CHANGELOG.md index f75c48f..dfe7b68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,31 @@ # CHANGELOG +## 4.7.0 - unreleased + +- Squirrel can now pick some better argument names based on the structure of the + SQL queries in the generated code. For example: + + ```sql + select squirrel.name + from squirrel + where squirrel_id = $1 + ``` + + The generated function is going to have the following definition: + + ```gleam + pub fn select_squirrel( + db: pog.Connection, + squirrel_id: Int + ) -> Result(pog.Returned(GetLoginLinkRow), pog.QueryError) { + // ... the generated code ... + } + ``` + + Notice how Squirrel could use `squirrel_id` as a parameter name rather than a + generic `arg_1` name. + ([Giacomo Cavalieri](https://github.com/giacomocavalieri)) + ## 4.6.0 - 2025-11-15 - Added support for the `name` type, represented as a Gleam `String`.