All Versions
47
Latest Version
Avg Release Cycle
62 days
Latest Release
542 days ago

Changelog History
Page 1

  • v2.0.0-alpha04 Changes

    October 03, 2022

    ๐Ÿ’ฅ Breaking Changes

    • The Paging 3 extension API has changed to only allow int types for the count.
    • 0๏ธโƒฃ The coroutines extension now requires a dispatcher to be passed in instead of defaulting.
    • Dialect and Driver classes are final, use delegation instead.

    โž• Added

    • 0๏ธโƒฃ [HSQL Dialect] Hsql: Support using DEFAULT for generated columns in Insert (#3372 by [Philip Wedemann][hfhbd])
    • 0๏ธโƒฃ [PostgreSQL Dialect] PostgreSQL: Support using DEFAULT for generated columns in INSERT (#3373 by [Philip Wedemann][hfhbd])
    • [PostgreSQL Dialect] Add NOW() to PostgreSQL (#3403 by [Philip Wedemann][hfhbd])
    • [PostgreSQL Dialect] PostgreSQL Add NOT operator (#3504 by [Philip Wedemann][hfhbd])
    • [Paging] Allow passing in CoroutineContext to *QueryPagingSource (#3384)
    • ๐Ÿ”Œ [Gradle Plugin] Add better version catalog support for dialects (#3435)
    • [Native Driver] Add callback to hook into DatabaseConfiguration creation of NativeSqliteDriver (#3512 by [Sven Jacobs][svenjacobs])

    ๐Ÿ”„ Changed

    • 0๏ธโƒฃ [Paging] Add a default dispatcher to the KeyedQueryPagingSource backed QueryPagingSource function (#3385)
    • [Paging] Make OffsetQueryPagingSource only work with Int (#3386)
    • ๐Ÿšš [Async Runtime] Move await* to upper class ExecutableQuery (#3524 by [Philip Wedemann][hfhbd])
    • ๐Ÿšš [Coroutines Extensions] Remove default params to flow extensions (#3489)

    ๐Ÿ›  Fixed

    • โšก๏ธ [Gradle Plugin] Update to Kotlin 1.7.20 (#3542 by [Zac Sweers][zacsweers])
    • [R2DBC Driver] Adopt R2DBC changes which do not always send a value (#3525 by [Philip Wedemann][hfhbd])
    • [HSQL Dialect] Fix failing sqlite VerifyMigrationTask with Hsql (#3380 by [Philip Wedemann][hfhbd])
    • ๐Ÿ”ง [Gradle Plugin] Convert tasks to use lazy configuration API (by [Matthew Haughton][3flex])
    • ๐Ÿ”Œ [Gradle Plugin] Avoid NPEs in Kotlin 1.7.20 (#3398 by [Zac Sweers][ZacSweers])
    • ๐Ÿ”Œ [Gradle Plugin] Fix description of squash migrations task (#3449)
    • ๐Ÿ”Œ [IDE Plugin] Fix NoSuchFieldError in newer Kotlin plugins (#3422 by [Madis Pink][madisp])
    • ๐Ÿ”Œ [IDE Plugin] IDEA: UnusedQueryInspection - fix ArrayIndexOutOfBoundsException. (#3427 by [Niklas Baudy][vanniktech])
    • ๐Ÿ”Œ [IDE Plugin] Use reflection for old kotlin plugin references
    • [Compiler] Custom dialect with extension function don't create imports (#3338 by [Philip Wedemann][hfhbd])
    • [Compiler] Fix escaping CodeBlock.of("${CodeBlock.toString()}") (#3340 by [Philip Wedemann][hfhbd])
    • [Compiler] Await async execute statements in migrations (#3352)
    • [Compiler] Fix AS (#3370 by [Philip Wedemann][hfhbd])
    • ๐Ÿ‘ [Compiler] getObject method supports automatic filling of the actual type. (#3401 by [Rob X][robx])
    • [Compiler] Fix codegen for async grouped returning statements (#3411)
    • ๐Ÿ‘ [Compiler] Infer the Kotlin type of bind parameter, if possible, or fail with a better error message (#3413 by [Philip Wedemann][hfhbd])
    • [Compiler] Don't allow ABS("foo") (#3430 by [Philip Wedemann][hfhbd])
    • ๐Ÿ‘ [Compiler] Support inferring kotlin type from other parameters (#3431 by [Philip Wedemann][hfhbd])
    • [Compiler] Always create the database implementation (#3540 by [Philip Wedemann][hfhbd])
    • [Compiler] Relax javaDoc and add it to custom mapper function too (#3554 [Philip Wedemann][hfhbd])
    • 0๏ธโƒฃ [Compiler] Fix DEFAULT in binding (by [Philip Wedemann][hfhbd])
    • [Paging] Fix Paging 3 (#3396)
    • [Paging] Allow construction of OffsetQueryPagingSource with Long (#3409)
    • [Paging] Don't statically swap Dispatchers.Main (#3428)
  • v2.0.0-alpha03 Changes

    June 17, 2022

    ๐Ÿ’ฅ Breaking Changes

    • Dialects are now references like actual gradle dependencies. groovy sqldelight { MyDatabase { dialect("app.cash.sqldelight:postgres-dialect:2.0.0-alpha03") } }
    • ๐Ÿšš The AfterVersionWithDriver type was removed in favour of AfterVersion which now always has the driver.
    • The Schema type is no longer a subtype of SqlDriver
    • PreparedStatement APIs are now called with zero-based indexes.

    โž• Added

    • ๐Ÿ”Œ [IDE Plugin] Added support for running SQLite, MySQL, and PostgreSQL commands against a running database (#2718 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add support for the android studio DB inspector (#3107 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ‘ [Runtime] Add support for async drivers (#3168 by [Derek Ellis][dellisd])
    • ๐Ÿ‘ [Native Driver] Support new kotlin native memory model (#3177 by [Kevin Galligan][kpgalligan])
    • ๐Ÿ‘ท [JS Driver] Add a driver for SqlJs workers (#3203 by [Derek Ellis][dellisd])
    • ๐Ÿ”Œ [Gradle Plugin] Expose the classpath for SQLDelight tasks
    • ๐Ÿ”Œ [Gradle Plugin] Add a gradle task for squashing migrations
    • ๐Ÿ”Œ [Gradle Plugin] Add a flag to ignore schema definitions during migration checks
    • โšก๏ธ [MySQL Dialect] Support FOR SHARE and FOR UPDATE in MySQL (#3098)
    • ๐Ÿ‘ [MySQL Dialect] Support MySQL index hints (#3099)
    • [PostgreSQL Dialect] Add date_trunc (#3295 by [Philip Wedemann][hfhbd])
    • ๐Ÿ‘ [JSON Extensions] Support JSON table functions (#3090)

    ๐Ÿ”„ Changed

    • ๐Ÿšš [Runtime] Remove the AfterVersion type without the driver (#3091)
    • ๐Ÿšš [Runtime] Move Schema type to top-level
    • ๐Ÿ‘ [Runtime] Open dialect and resolver to support 3rd party implementations (#3232 by [Philip Wedemann][hfhbd])
    • [Compiler] Include the dialect used to compile in failure reports (#3086)
    • [Compiler] Skip unused adapters (#3162 by [Eliezer Graber][eygraber])
    • [Compiler] Use zero based index in PrepareStatement (#3269 by [Philip Wedemann][hfhbd])
    • ๐Ÿ”Œ [Gradle Plugin] Also make the dialect a proper gradle dependency instead of a string (#3085)
    • ๐Ÿ”Œ [Gradle Plugin] Gradle Verify Task: Throw when missing database file. (#3126 by [Niklas Baudy][vanniktech])

    ๐Ÿ›  Fixed

    • ๐Ÿ”Œ [Gradle Plugin] Minor cleanups and tweaks to the Gradle plugin (#3171 by [Matthew Haughton][3flex])
    • ๐Ÿ”Œ [Gradle Plugin] Dont use an AGP string for the generated directory
    • ๐Ÿ”Œ [Gradle Plugin] Use AGP namespace attribute (#3220)
    • ๐Ÿ”Œ [Gradle Plugin] Do not add kotlin-stdlib as a runtime dependency of the Gradle plugin (#3245 by [Martin Bonnin][mbonnin])
    • ๐Ÿ”ง [Gradle Plugin] Simplify the multiplatform configuration (#3246 by [Martin Bonnin][mbonnin])
    • ๐Ÿ”Œ [Gradle Plugin] Support js only projects (#3310 by [Philip Wedemann][hfhbd])
    • ๐Ÿ”Œ [IDE Plugin] Use java home for gradle tooling API (#3078)
    • ๐Ÿ”Œ [IDE Plugin] Load the JDBC driver on the correct classLoader inside the IDE plugin (#3080)
    • ๐Ÿ”Œ [IDE Plugin] Mark the file element as null before invalidating to avoid errors during already existing PSI changes (#3082)
    • ๐Ÿ”Œ [IDE Plugin] Dont crash finding usages of the new table name in an ALTER TABLE statement (#3106)
    • โšก๏ธ [IDE Plugin] Optimize the inspectors and enable them to fail silently for expected exception types (#3121)
    • ๐Ÿ”Œ [IDE Plugin] Delete files that should be generated directories (#3198)
    • ๐Ÿ”Œ [IDE Plugin] Fix a not-safe operator call
    • โšก๏ธ [Compiler] Ensure updates and deletes with RETURNING statements execute queries. (#3084)
    • [Compiler] Correctly infer argument types in compound selects (#3096)
    • [Compiler] Common tables do not generate data classes so dont return them (#3097)
    • [Compiler] Find the top migration file faster (#3108)
    • [Compiler] Properly inherit nullability on the pipe operator
    • ๐Ÿ‘ [Compiler] Support the iif ANSI SQL function
    • [Compiler] Don't generate empty query files (#3300 by [Philip Wedemann][hfhbd])
    • [Compiler] Fix adapter with question mark only (#3314 by [Philip Wedemann][hfhbd])
    • [PostgreSQL Dialect] Postgres primary key columns are always non-null (#3092)
    • [PostgreSQL Dialect] Fix copy with same name in multiple tables (#3297 by [Philip Wedemann][hfhbd])
    • [SQLite 3.35 Dialect] Only show an error when dropping an indexed column from the altered table (#3158 by [Eliezer Graber][eygraber])
  • v2.0.0-alpha02 Changes

    April 13, 2022

    ๐Ÿ’ฅ Breaking Changes

    • You'll need to replace all occurrences of app.cash.sqldelight.runtime.rx with app.cash.sqldelight.rx2

    โž• Added

    • ๐Ÿ‘ [Compiler] Support returning at the end of a grouped statement
    • ๐Ÿ‘ [Compiler] Support compiler extensions via dialect modules and add a SQLite JSON extension (#1379, #2087)
    • ๐Ÿ‘ [Compiler] Support PRAGMA statements which return a value (#1106)
    • ๐Ÿ‘ [Compiler] Support generating value types for marked columns
    • ๐Ÿ‘ [Compiler] Add support for optimistic locks and validation (#1952)
    • โšก๏ธ [Compiler] Support multi-update statements
    • ๐Ÿ‘ [PostgreSQL] Support postgres returning statements
    • ๐Ÿ‘ [PostgreSQL] Support postgres date types
    • ๐Ÿ‘ [PostgreSQL] Support pg intervals
    • ๐Ÿ‘ [PostgreSQL] Support PG Booleans and fix inserts on alter tables
    • ๐Ÿ‘ [PostgreSQL] Support optional limits in Postgres
    • ๐Ÿ‘ [PostgreSQL] Support PG BYTEA type
    • โœ… [PostgreSQL] Add a test for postgres serials
    • โšก๏ธ [PostgreSQL] Support for update postgres syntax
    • ๐Ÿ‘ [PostgreSQL] Support PostgreSQL array types
    • [PostgreSQL] Properly store/retrieve UUID types in PG
    • ๐Ÿ‘ [PostgreSQL] Support PostgreSQL NUMERIC type (#1882)
    • ๐Ÿ‘ [PostgreSQL] Support returning queries inside of common table expressions (#2471)
    • ๐Ÿ‘ [PostgreSQL] Support json specific operators
    • [PostgreSQL] Add Postgres Copy (by [Philip Wedemann][hfhbd])
    • ๐Ÿ‘ [MySQL] Support MySQL Replace
    • ๐Ÿ‘ [MySQL] Support NUMERIC/BigDecimal MySQL types (#2051)
    • ๐Ÿ‘ [MySQL] Support MySQL truncate statement
    • ๐Ÿ‘ [MySQL] Support json specific operators in Mysql (by [Eliezer Graber][eygraber])
    • ๐Ÿ‘ [MySQL] Support MySql INTERVAL (#2969 by [Eliezer Graber][eygraber])
    • [HSQL] Add HSQL Window functionality
    • [SQLite] Don't replace equality checks for nullable parameters in a WHERE (#1490 by [Eliezer Graber][eygraber])
    • ๐Ÿ‘ [SQLite] Support Sqlite 3.35 returning statements (#1490 by [Eliezer Graber][eygraber])
    • ๐Ÿ‘ [SQLite] Support GENERATED clause
    • ๐Ÿ‘ [SQLite] Add support for Sqlite 3.38 dialect (by [Eliezer Graber][eygraber])

    ๐Ÿ”„ Changed

    • [Compiler] Clean up generated code a bit
    • [Compiler] Forbid usage of table parameters in grouped statements (#1822)
    • [Compiler] Put grouped queries inside a transaction (#2785)
    • โšก๏ธ [Runtime] Return the updated row count from the drivers execute method
    • ๐Ÿš‘ [Runtime] Confine SqlCursor to the critical section accessing the connection. (#2123 by [Anders Ha][andersio])
    • ๐Ÿ”Œ [Gradle Plugin] Compare schema definitions for migrations (#841)
    • [PostgreSQL] Disallow double quotes for PG
    • [MySQL] Error on usage of == in MySQL (#2673)

    ๐Ÿ›  Fixed

    • [Compiler] Same adapter type from different tables causing a compilation error in 2.0 alpha
    • [Compiler] Problem compiling upsert statement (#2791)
    • [Compiler] Query result should use tables in the select if there are multiple matches (#1874, #2313)
    • โšก๏ธ [Compiler] Support updating a view which has a INSTEAD OF trigger (#1018)
    • ๐Ÿ‘ [Compiler] Support from and for in function names
    • [Compiler] Allow SEPARATOR keyword in function expressions
    • [Compiler] Cannot access ROWID of aliased table in ORDER BY
    • [Compiler] Aliased column name is not recognized in HAVING clause in MySQL
    • [Compiler] Erroneous 'Multiple columns found' error
    • [Compiler] Unable to set PRAGMA locking_mode = EXCLUSIVE;
    • [PostgreSQL] Postgresql rename column
    • [MySQL] UNIX_TIMESTAMP, TO_SECONDS, JSON_ARRAYAGG MySQL functions not recognized
    • [SQLite] fix SQLite window functionality
    • ๐Ÿ”Œ [IDE Plugin] Run the goto handler in an empty progress indicator (#2990)
    • ๐Ÿ”ง [IDE Plugin] Ensure the highlight visitor doesnt run if the project isnt configured (#2981, #2976)
    • โšก๏ธ [IDE Plugin] Ensure transitive generated code is also updated in the IDE (#1837)
    • โšก๏ธ [IDE Plugin] Invalidate indexes when updating the dialect
  • v2.0.0-alpha01 Changes

    March 31, 2022

    ๐Ÿš€ This is the first alpha release for 2.0 and has some breaking changes. We expect more ABI breaking changes to come so don't publish any libraries with dependencies on this release (applications should be fine).

    ๐Ÿ’ฅ Breaking Changes

    • First, you'll need to replace all occurrences of com.squareup.sqldelight with app.cash.sqldelight
    • Second, you'll need to replace all occurrences of app.cash.sqldelight.android with app.cash.sqldelight.driver.android
    • Third, you'll need to replace all occurrences of app.cash.sqldelight.sqlite.driver with app.cash.sqldelight.driver.jdbc.sqlite
    • Fourth, you'll need to replace all occurrences of app.cash.sqldelight.drivers.native with app.cash.sqldelight.driver.native
    • โšก๏ธ The IDE plugin must be updated to a 2.X version, which can be found in the alpha or eap channel
    • Dialects are now dependencies which you can specify within gradle:
    sqldelight {
      MyDatabase {
        packageName = "com.example"
        dialect = "app.cash.sqldelight:mysql-dialect:2.0.0-alpha01"
      }
    }
    

    ๐Ÿ‘ The currently supported dialects are mysql-dialect, postgresql-dialect, hsql-dialect, sqlite-3-18-dialect, sqlite-3-24-dialect, sqlite-3-25-dialect, sqlite-3-30-dialect, and sqlite-3-35-dialect

    • ๐Ÿ‘ Primitive types must now be imported (for example INTEGER AS Boolean you have to import kotlin.Boolean), some previously supported types now need an adapter. Primitive adapters are available in app.cash.sqldelight:primitive-adapters:2.0.0-alpha01 for most conversions (like IntColumnAdapter for doing Integer AS kotlin.Int).

    โž• Added

    • ๐Ÿ”Œ [IDE Plugin] Basic suggested migration (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add import hint action (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add kotlin class completion (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [Gradle Plugin] Add shortcut for Gradle type safe project accessors (by [Philip Wedemann][hfhbd])
    • [Compiler] Customize codegen based on dialect (by [Marius Volkhart][MariusV])
    • [JDBC Driver] Add common types to JdbcDriver (by [Marius Volkhart][MariusV])
    • ๐Ÿ‘ [SQLite] Add support for the sqlite 3.35 (by [Eliezer Graber][eygraber])
    • ๐Ÿ‘ [SQLite] Add support for ALTER TABLE DROP COLUMN (by [Eliezer Graber][eygraber])
    • ๐Ÿ‘ [SQLite] Add support for Sqlite 3.30 dialect (by [Eliezer Graber][eygraber])
    • ๐Ÿ‘ [SQLite] Support NULLS FIRST/LAST in sqlite (by [Eliezer Graber][eygraber])
    • ๐Ÿ‘ [HSQL] Add HSQL support for generated clause (by [Marius Volkhart][MariusV])
    • ๐Ÿ‘ [HSQL] Add support for named parameters in HSQL (by [Marius Volkhart][MariusV])
    • [HSQL] Customize the HSQL insert query (by [Marius Volkhart][MariusV])

    ๐Ÿ”„ Changed

    • ๐Ÿ“ฆ [Everything] Package name has changed from com.squareup.sqldelight to app.cash.sqldelight.
    • ๐Ÿšš [Runtime] Move dialects into their own isolated gradle modules
    • [Runtime] Switch to driver-implemented query notifications.
    • 0๏ธโƒฃ [Runtime] Extract default column adapters to separate module (#2056, #2060)
    • [Compiler] Let modules generate the queries implementations instead of redoing it in each module
    • ๐Ÿšš [Compiler] Remove the custom toString generation of generated data classes. (by [Paul Woitaschek][PaulWoitaschek])
    • ๐Ÿšš [JS Driver] Remove sql.js dependency from sqljs-driver (by [Derek Ellis][dellisd])
    • ๐Ÿšš [Paging] Remove the android paging 2 extension
    • ๐Ÿ”€ [IDE Plugin] Add an editor banner while SQLDelight is syncing (#2511)
    • ๐Ÿ”Œ [IDE Plugin] Minimum supported IntelliJ version is 2021.1

    ๐Ÿ›  Fixed

    • [Runtime] Flatten listener list to reduce allocations and pointer chasing. (by [Anders Ha][andersio])
    • ๐Ÿ”Œ [IDE Plugin] Fix error message to allow jumping to error (by [Philip Wedemann][hfhbd])
    • ๐Ÿ”Œ [IDE Plugin] Add missing inspection descriptions (#2768 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix exception in GotoDeclarationHandler (#2531, #2688, #2804 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Highlight import keyword (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix unresolved kotlin types (#1678 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ“ฆ [IDE Plugin] Fix highlighting for unresolved package (#2543 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Dont attempt to inspect mismatched columns if the project index is not yet initialized
    • ๐Ÿ”€ [IDE Plugin] Dont initialize the file index until a gradle sync has occurred
    • ๐Ÿ”€ [IDE Plugin] Cancel the SQLDelight import if a gradle sync begins
    • ๐Ÿ”Œ [IDE Plugin] Regenerate the database outside of the thread an undo action is performed on
    • ๐Ÿ”Œ [IDE Plugin] If a reference cannot be resolves use a blank java type
    • ๐Ÿšš [IDE Plugin] Correctly move off the main thread during file parsing and only move back on to write
    • ๐Ÿ”Œ [IDE Plugin] Improve compatibility with older IntelliJ versions (by [Matthew Haughton][3flex])
    • ๐Ÿ”Œ [IDE Plugin] Use faster annotation API
    • ๐Ÿ”Œ [Gradle Plugin] Explicitly support js/android plugins when adding runtime (by [Zac Sweers][ZacSweers])
    • ๐Ÿ”Œ [Gradle Plugin] Register migration output task without derviving schemas from migrations (#2744 by [Kevin Cianfarini][kevincianfarini])
    • ๐Ÿ”Œ [Gradle Plugin] If the migration task crashes, print the file it crashed running
    • ๐Ÿ”Œ [Gradle Plugin] Sort files when generating code to ensure idempotent outputs (by [Zac Sweers][ZacSweers])
    • [Compiler] Use faster APIs for iterating files and dont explore the entire PSI graph
    • [Compiler] Add keyword mangling to select function parameters (#2759 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ“ฆ [Compiler] Fix packageName for migration adapter (by [Philip Wedemann][hfhbd])
    • [Compiler] Emit annotations on properties instead of types (#2798 by [Alexander Perfilyev][aperfilyev])
    • [Compiler] Sort arguments before passing to a Query subtype (#2379 by [Alexander Perfilyev][aperfilyev])
  • v1.5.3 Changes

    November 23, 2021

    โž• Added

    • [JDBC Driver] Open JdbcDriver for 3rd party driver implementations (#2672 by [Philip Wedemann][hfhbd])
    • [MySQL Dialect] Add missing functions for time increments (#2671 by [Sam Doward][sdoward])
    • [Coroutines Extension] Add M1 targets for coroutines-extensions (by [Philip Dukhov][PhilipDukhov])

    ๐Ÿ”„ Changed

    • [Paging3 Extension] Distribute sqldelight-android-paging3 as JAR instead of AAR (#2634 by [Marco Romano][julioromano])
    • ๐Ÿ›  Property names which are also soft keywords will now be suffixed with underscores. For instance value will be exposed as value_

    ๐Ÿ›  Fixed

    • [Compiler] Don't extract variables for duplicate array parameters (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ“‡ [Gradle Plugin] add kotlin.mpp.enableCompatibilityMetadataVariant. (#2628 by [Martin Bonnin][martinbonnin])
    • ๐Ÿ”Œ [IDE Plugin] Find usages processing requires a read action
  • v1.5.2 Changes

    October 12, 2021

    โž• Added

    • ๐Ÿ”Œ [Gradle Plugin] HMPP support (#2548 by [Martin Bonnin][martinbonnin])
    • ๐Ÿ”Œ [IDE Plugin] Add NULL comparison inspection (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add inspection suppressor (#2519 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Mixed named and positional parameters inspection (by [Alexander Perfilyev][aperfilyev])
    • [SQLite Driver] Add mingwX86 target. (#2558 by [Nikita Kozhemyakin][enginegl])
    • [SQLite Driver] Add M1 targets
    • ๐Ÿง [SQLite Driver] Add linuxX64 support (#2456 by [Cedric Hippmann][chippmann])
    • [MySQL Dialect] Add ROW_COUNT function to mysql (#2523)
    • [PostgreSQL Dialect] postgres rename, drop column (by [Juan Liska][pabl0rg])
    • [PostgreSQL Dialect] PostgreSQL grammar doesn't recognize CITEXT
    • [PostgreSQL Dialect] Include TIMESTAMP WITH TIME ZONE and TIMESTAMPTZ
    • [PostgreSQL Dialect] Add grammar for PostgreSQL GENERATED columns
    • [Runtime] Provide SqlDriver as a parameter to AfterVersion (#2534, 2614 by [Ahmed El-Helw][ahmedre])

    ๐Ÿ”„ Changed

    • ๐Ÿ”Œ [Gradle Plugin] explicitely require Gradle 7.0 (#2572 by [Martin Bonnin][martinbonnin])
    • ๐Ÿ”Œ [Gradle Plugin] Make VerifyMigrationTask support Gradle's up-to-date checks (#2533 by [Matthew Haughton][3flex])
    • ๐Ÿ”Œ [IDE Plugin] Don't warn with "Join compares two columns of different types" when joining nullable with non-nullable type (#2550 by [Piotr Chmielowski][pchmielowski])
    • ๐Ÿ”Œ [IDE Plugin] Clarify the error for the lowercase 'as' in column type (by [Alexander Perfilyev][aperfilyev])

    ๐Ÿ›  Fixed

    • ๐Ÿ”Œ [IDE Plugin] Do not reparse under a new dialect if the project is already disposed (#2609)
    • ๐Ÿ”Œ [IDE Plugin] If the associated virtual file is null, the module is null (#2607)
    • ๐Ÿ”Œ [IDE Plugin] Avoid crashing during the unused query inspection (#2610)
    • ๐Ÿ”€ [IDE Plugin] Run the database sync write inside of a write action (#2605)
    • โฑ [IDE Plugin] Let the IDE schedule SQLDelight syncronization
    • ๐Ÿ”Œ [IDE Plugin] Fix npe in JavaTypeMixin (#2603 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix IndexOutOfBoundsException in MismatchJoinColumnInspection (#2602 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add description for UnusedColumnInspection (#2600 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Wrap PsiElement.generatedVirtualFiles into read action (#2599 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿšš [IDE Plugin] Remove unnecessary nonnull cast (#2596)
    • ๐Ÿ”Œ [IDE Plugin] Properly handle nulls for find usages (#2595)
    • ๐Ÿ”Œ [IDE Plugin] Fix IDE autocomplete for generated files for Android (#2573 by [Martin Bonnin][martinbonnin])
    • ๐Ÿ”Œ [IDE Plugin] Fix npe in SqlDelightGotoDeclarationHandler (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Mangle kotlin keywords in arguments inside insert stmt (#2433 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix npe in SqlDelightFoldingBuilder (#2382 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Catch ClassCastException in CopyPasteProcessor (#2369 by [Alexander Perfilyev][aperfilyev])
    • โšก๏ธ [IDE Plugin] Fix update live template (by [Ilias Redissi][IliasRedissi])
    • ๐Ÿ”Œ [IDE Plugin] Adds descriptions to intention actions (#2489 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix exception in CreateTriggerMixin if table is not found (by [Alexander Perfilyev][aperfilyev])
    • [Compiler] Topologically sort table creation statemenets
    • [Compiler] Stop invoking forDatabaseFiles callback on directories (#2532)
    • ๐Ÿ”Œ [Gradle Plugin] Propagate generateDatabaseInterface task dependency to potential consumers (#2518 by [Martin Bonnin][martinbonnin])
  • v1.5.1 Changes

    July 16, 2021

    โž• Added

    • [PostgreSQL Dialect] PostgreSQL JSONB and ON Conflict Do Nothing (by [Andrew Stewart][satook])
    • โšก๏ธ [PostgreSQL Dialect] Adds support for PostgreSQL ON CONFLICT (column, ...) DO UPDATE (by [Andrew Stewart][satook])
    • ๐Ÿ‘ [MySQL Dialect] Support MySQL generated columns (by [Jeff Gulbronson][JeffG])
    • ๐Ÿ‘ [Native Driver] Add watchosX64 support
    • ๐Ÿ”Œ [IDE Plugin] Add parameter types and annotations (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add action to generate 'select all' query (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Show column types in autocomplete (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add icons to autocomplete (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add action to generate 'select by primary key' query (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add action to generate 'insert into' query (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add highlighting for column names, stmt identifiers, function names (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add remaining query generation actions (#489 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Show parameter hints from insert-stmt (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Table alias intention action (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Qualify column name intention (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Go to declaration for kotlin property (by [Alexander Perfilyev][aperfilyev])

    ๐Ÿ”„ Changed

    • ๐ŸŽ [Native Driver] Improve native transaction performance by avoiding freezing and shareable data structures when possible (by [Anders Ha][andersio])
    • [Paging 3] Bump Paging3 version to 3.0.0 stable
    • โฌ†๏ธ [JS Driver] Upgrade sql.js to 1.5.0

    ๐Ÿ›  Fixed

    • [JDBC SQLite Driver] Call close() on connection before clearing the ThreadLocal (#2444 by [Hannes StruรŸ][hannesstruss])
    • [RX extensions] Fix subscription / disposal race leak (#2403 by [Pierre Yves Ricau][pyricau])
    • [Coroutines extension] Ensure we register query listener before notifying
    • [Compiler] Sort notifyQueries to have consistent kotlin output file (by [Jiayu Chen][thomascjy])
    • [Compiler] Don't annotate select query class properties with @JvmField (by [Eliezer Graber][eygraber])
    • โšก๏ธ [IDE Plugin] Fix import optimizer (#2350 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix unused column inspection (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add nested classes support to import inspection and class annotator (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix npe in CopyPasteProcessor (#2363 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix crash in InlayParameterHintsProvider (#2359 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Fix insertion of blank lines when copy-pasting any text into create table stmt (#2431 by [Alexander Perfilyev][aperfilyev])
  • v1.5.0 Changes

    April 23, 2021

    โž• Added

    • [SQLite Javascript Driver] Enable sqljs-driver publication (#1667 by [Derek Ellis][dellisd])
    • [Paging3 Extension] Extension for Android Paging 3 Library (#1786 by [Kevin Cianfarini][kevincianfarini])
    • โšก๏ธ [MySQL Dialect] Adds support for mysql's ON DUPLICATE KEY UPDATE conflict resolution. (by [Ryan Harter][rharter])
    • ๐Ÿ‘ [SQLite Dialect] Add compiler support for SQLite offsets() (by [Quinton Roberts][qjroberts])
    • ๐Ÿ”Œ [IDE Plugin] Add import quick fix for unknown type (#683 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add unused import inspection (#1161 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add unused query inspection (by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Add unused column inspection (#569 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Automatically bring imports on copy/paste (#684 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Pop a balloon when there are incompatibilities between gradle/intellij plugin versions
    • ๐Ÿ”Œ [IDE Plugin] Insert Into ... VALUES(?) parameter hints (#506 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] Inline parameter hints (by [Alexander Perfilyev][aperfilyev])
    • [Runtime] Include an API in the runtime for running migrations with callbacks (#1844)

    ๐Ÿ”„ Changed

    • [Compiler] Smart cast "IS NOT NULL" queries (#867)
    • [Compiler] Protect against keywords that will fail at runtime (#1471, #1629)
    • ๐Ÿ”Œ [Gradle Plugin] Reduce size of gradle plugin from 60mb -> 13mb.
    • ๐Ÿšš [Gradle Plugin] Properly support android variants, and remove support for KMM target-specific sql (#1039)
    • ๐Ÿ”Œ [Gradle Plugin] Pick a minimum sqlite version based on minsdk (#1684)
    • ๐ŸŽ [Native Driver] Native driver connection pool and performance updates

    ๐Ÿ›  Fixed

    • [Compiler] NBSP before lambdas (by [Benoรฎt Quenaudon][oldergod])
    • [Compiler] Fix incompatible types in generated bind* and cursor.get* statements
    • [Compiler] SQL clause should persist adapted type (#2067)
    • [Compiler] Column with only NULL keyword should be nullable
    • [Compiler] Dont generate mapper lambda with type annotations (#1957)
    • ๐Ÿ“ฆ [Compiler] If custom queries would clash, use the file name as an additional package suffix (#1057, #1278)
    • [Compiler] Ensure foreign key cascades cause query listeners to be notified (#1325, #1485)
    • [Compiler] If unioning two of the same type, return the table type (#1342)
    • [Compiler] Ensure params to ifnull and coalesce can be nullable (#1263)
    • [Compiler] Correctly use query-imposed nullability for expressions
    • ๐Ÿ‘ [MySQL Dialect] Support MySQL if statements
    • [PostgreSQL Dialect] Retrieve NUMERIC and DECIMAL as Double in PostgreSQL (#2118)
    • โšก๏ธ [SQLite Dialect] UPSERT notifications should account for BEFORE/AFTER UPDATE triggers. (#2198 by [Anders Ha][andersio])
    • [SQLite Driver] Use multiple connections for threads in the SqliteDriver unless we are in memory (#1832)
    • [JDBC Driver] JDBC Driver assumes autoCommit is true (#2041)
    • ๐Ÿ‘ป [JDBC Driver] Ensure that we close connections on exception (#2306)
    • ๐Ÿ [IDE Plugin] Fix GoToDeclaration/FindUsages being broken on Windows due to path separator bug (#2054 by [Angus Holder][AngusH])
    • ๐Ÿ”Œ [IDE Plugin] Ignore gradle errors instead of crashing in the IDE.
    • ๐Ÿšš [IDE Plugin] If a sqldelight file is moved to a non-sqldelight module, do not attempt codegen
    • ๐Ÿ”Œ [IDE Plugin] Ignore codegen errors in IDE
    • ๐Ÿ”Œ [IDE Plugin] Ensure that we dont try to negatively substring (#2068)
    • ๐Ÿ”Œ [IDE Plugin] Also ensure project is not disposed before running gradle action (#2155)
    • ๐Ÿ”Œ [IDE Plugin] Arithmetic on nullable types should also be nullable (#1853)
    • ๐Ÿ”Œ [IDE Plugin] Make 'expand * intention' work with additional projections (#2173 by [Alexander Perfilyev][aperfilyev])
    • ๐Ÿ”Œ [IDE Plugin] If kotlin resolution fails during GoTo, dont attempt to go to sqldelight files
    • ๐Ÿ”Œ [IDE Plugin] If IntelliJ encounters an exception while sqldelight is indexing, dont crash
    • ๐Ÿ”Œ [IDE Plugin] Handle exceptions that happen while detecting errors before codegen in the IDE
    • ๐Ÿ”Œ [IDE Plugin] Make the IDE plugin compatible with Dynamic Plugins (#1536)
    • ๐Ÿ”Œ [Gradle Plugin] Race condition generating a database using WorkerApi (#2062 by [Stรฉphane Nicolas][stephanenicolas])
    • ๐Ÿ”Œ [Gradle Plugin] classLoaderIsolation prevents custom jdbc usage (#2048 by [Ben Asher][BenA])
    • ๐Ÿ“ฆ [Gradle Plugin] Improve missing packageName error message (by [Niklas Baudy][vanniktech])
    • ๐Ÿ— [Gradle Plugin] SQLDelight bleeds IntelliJ dependencies onto buildscript class path (#1998)
    • ๐Ÿ— [Gradle Plugin] Fix gradle build caching (#2075)
    • ๐Ÿ”Œ [Gradle Plugin] Do not depend on kotlin-native-utils in Gradle plugin (by [Ilya Matveev][ilmat192])
    • ๐Ÿ”Œ [Gradle Plugin] Also write the database if there are only migration files (#2094)
    • ๐Ÿ”Œ [Gradle Plugin] Ensure diamond dependencies only get picked up once in the final compilation unit (#1455)

    ๐Ÿš€ Also just a general shoutout to [Matthew Haughton][3flex] who did a lot of work to improve the SQLDelight infrastructure this release.

  • v1.4.4 Changes

    October 08, 2020

    โž• Added

    • ๐Ÿ‘ [PostgreSQL Dialect] Support data-modifying statements in WITH
    • ๐Ÿ‘ [PostgreSQL Dialect] Support substring function
    • ๐Ÿ”Œ [Gradle Plugin] Added verifyMigrations flag for validating migrations during SQLDelight compilation (#1872)

    ๐Ÿ”„ Changed

    • [Compiler] Flag SQLite specific functions as unknown in non-SQLite dialects
    • ๐Ÿ”ง [Gradle Plugin] Provide a warning when the sqldelight plugin is applied but no databases are configured (#1421)

    ๐Ÿ›  Fixed

    • [Compiler] Report an error when binding a column name in an ORDER BY clause (#1187 by Eliezer Graber)
    • โš  [Compiler] Registry warnings appear when generating the db interface (#1792)
    • [Compiler] Incorrect type inference for case statement (#1811)
    • ๐Ÿ‘ [Compiler] Provide better errors for migration files with no version (#2006)
    • [Compiler] Required database type to marshal is incorrect for some database type ColumnAdapter's (#2012)
    • [Compiler] Nullability of CAST (#1261)
    • โš  [Compiler] Lots of name shadowed warnings in query wrappers (#1946 by Eliezer Graber)
    • [Compiler] Generated code is using full qualifier names (#1939)
    • ๐Ÿ”€ [IDE Plugin] Trigger sqldelight code gen from gradle syncs
    • ๐Ÿ”Œ [IDE Plugin] Plugin not regenerating database interface when changing .sq files (#1945)
    • ๐Ÿ“ฆ [IDE Plugin] Issue when moving files to new packages (#444)
    • ๐Ÿšš [IDE Plugin] If theres nowhere to move the cursor, do nothing instead of crashing (#1994)
    • ๐Ÿ“ฆ [IDE Plugin] Use empty package name for files outside of a gradle project (#1973)
    • ๐Ÿ”Œ [IDE Plugin] Fail gracefully for invalid types (#1943)
    • ๐Ÿ”Œ [IDE Plugin] Throw a better error message when encountering an unknown expression (#1958)
    • ๐Ÿ— [Gradle Plugin] SQLDelight bleeds IntelliJ dependencies onto buildscript class path (#1998)
    • ๐Ÿ”Œ [Gradle Plugin] "JavadocIntegrationKt not found" compilation error when adding method doc in *.sq file (#1982)
    • ๐Ÿ”ง [Gradle Plugin] SqlDeslight gradle plugin doesn't support Configuration Caching (CoCa). (#1947 by Stรฉphane Nicolas)
    • [SQLite JDBC Driver] SQLException: database in auto-commit mode (#1832)
    • [Coroutines Extension] Fix IR backend for coroutines-extensions (#1918 by Derek Ellis)
  • v1.4.3 Changes

    September 04, 2020

    โž• Added

    • [MySQL Dialect] Add support for MySQL last_insert_id function (by Kelvin Law)
    • ๐Ÿ‘ [PostgreSQL Dialect] Support SERIAL data type (by Veyndan Stuart & Felipe Lima)
    • ๐Ÿ‘ [PostgreSQL Dialect] Support PostgreSQL RETURNING (by Veyndan Stuart)

    ๐Ÿ›  Fixed

    • 0๏ธโƒฃ [MySQL Dialect] Treat MySQL AUTO_INCREMENT as having a default value (#1823)
    • [Compiler] Fix Upsert statement compiler error (#1809 by Eliezer Graber)
    • [Compiler] Fix issue with invalid Kotlin being generated (#1925 by Eliezer Grabar)
    • ๐Ÿ‘ [Compiler] Have a better error message for unknown functions (#1843)
    • [Compiler] Expose string as the type for the second parameter of instr
    • ๐Ÿ”Œ [IDE Plugin] Fix daemon bloat and UI thread stalling for IDE plugin (#1916)
    • ๐Ÿ”Œ [IDE Plugin] Handle null module scenario (#1902)
    • ๐Ÿ“ฆ [IDE Plugin] In unconfigured sq files return empty string for the package name (#1920)
    • โœ… [IDE Plugin] Fix grouped statements and add an integration test for them (#1820)
    • ๐Ÿ”Œ [IDE Plugin] Use built in ModuleUtil to find the module for an element (#1854)
    • ๐Ÿ”Œ [IDE Plugin] Only add valid elements to lookups (#1909)
    • ๐Ÿ”Œ [IDE Plugin] Parent can be null (#1857)