Skip to content

Version 2.0.0-alpha05 (2023-01-20)

Compare
Choose a tag to compare
@AlecKazakova AlecKazakova released this 20 Jan 14:54
· 737 commits to master since this release

Breaking Changes

  • This release requires using Java 11 for your gradle builds and Java 8 for the runtime.
  • The Gradle plugin now uses Properties and a DomainCollection for the databases, new syntax:
// build.gradle
sqldelight {
  databases { // new wrapper
    Database {
      packageName = "com.sample"
    }
  }
}
// build.gradle.kts
sqldelight {
  databases { // new wrapper
    create("Database") {
      packageName.set("com.sample") // packageName is now a Property<String>
    }
  }
}

Added

  • [Paging] Multiplatform paging extension (by Jeff Lockhart)
  • [Runtime] Add fun modifier to Listener interface.
  • [SQLite Dialect] Add SQLite 3.33 support (UPDATE FROM) (by Eliezer Graber))
  • [PostgreSQL Dialect] Support UPDATE FROM in postgresql (by Eliezer Graber))

Changed

  • [RDBC Driver] Expose the connection (by Philip Wedemann)
  • [Runtime] Move migration callbacks into main migrate fun
  • [Gradle Plugin] Hide Configurations from downstream projects
  • [Gradle Plugin] Only shade Intellij (by Philip Wedemann)
  • [Gradle Plugin] Support Kotlin 1.8.0-Beta and add multi version Kotlin test (by Philip Wedemann)

Fixed

  • [RDBC Driver] Use javaObjectType instead (by Philip Wedemann)
  • [RDBC Driver] Fix primitive null values in bindStatement (by Philip Wedemann)
  • [RDBC Driver] Support R2DBC 1.0 (by Philip Wedemann)
  • [PostgreSQL Dialect] Postgres: Fix Array without type parameter (by Philip Wedemann)
  • [IDE Plugin] Bump intellij to 221.6008.13 (by Philip Wedemann)
  • [Compiler] Resolve recursive origin table from pure views (by Philip Wedemann)
  • [Compiler] Use value classes from table foreign key clause (by Philip Wedemann)
  • [Compiler] Fix SelectQueryGenerator to support bind expression without parenthesis (by Doogie Min)
  • [Compiler] Fix duplicate generation of ${name}Indexes variables when using transactions (by Andreas Sacher)