sqldelight v2.0.0-alpha02 Release Notes
Release Date: 2022-04-13 // 11 months ago-
๐ฅ Breaking Changes
- You'll need to replace all occurrences of
app.cash.sqldelight.runtime.rx
withapp.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
- You'll need to replace all occurrences of