Skip to content

v0.8.0

Choose a tag to compare

@Goldziher Goldziher released this 26 May 13:14
· 19 commits to main since this release
v0.8.0
19bc564

Added

  • Kotlin extension functions (extension_functions, opt-in) for kotlin-jdbc and kotlin-r2dbc. Generates idiomatic extension functions on the connection receiver — fun Connection.getUser(id: Int), called as connection.getUser(id) — with expression bodies for value-returning queries. kotlin-r2dbc is reworked into a suspend extension on io.r2dbc.spi.Connection. Default off; existing output unchanged. (#43)
  • Configurable PHP namespace (namespace) for php-pdo and php-amphp, enabling PSR-4 framework integration. Default remains App\Generated; an empty string omits the declaration. (#46)

Fixed

  • Postgres 18 compatibility: the schema parser no longer crashes on psql meta-commands (\restrict / \unrestrict) emitted by pg_dump 18+ and dbmate. Such lines are stripped before parsing, so plain-format dumps are consumed as-is. (#49)
  • Python imports: python-psycopg3, python-asyncpg, and python-aiomysql now emit import uuid / from typing import Any when their type mappings need them, fixing a NameError on import of generated modules. (#48)

Full Changelog: v0.7.0...v0.8.0