Bot releases are hidden (Show)
Published by AlecKazakova 11 months ago
Published by AlecStrong about 1 year ago
Please see the detailed upgrading information for how to upgrade from SQLDelight 1.x to SQLDelight 2.0. The IntelliJ plugin needs to go through an approval before it lands on the marketplace inside of IntelliJ but can be downloaded and installed from disk below.
The below notes are all changes from SQLDelight 1.5.5. For only the changes from SQLDelight 2.0.0-rc02 please see the Changelog. Some highlights which signify major changes are highlighted.
migrate
fungetObject
method supports automatic filling of the actual type. (#3401 by Rob X)Published by AlecStrong over 1 year ago
Published by AlecStrong over 1 year ago
NOTE: IntelliJ plugins now go through an approval process, if you want the latest plugin you can download it below in these release notes.
Published by AlecStrong over 1 year ago
// 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>
}
}
}
migrate
funPublished by AlecStrong over 1 year ago
This is a compatibility release for Kotlin 1.8 and IntelliJ 2021+, supporting JDK 17.
Published by AlecStrong about 2 years ago
This is a compatibility update for Kotlin 1.7.20 and AGP 7.3.0
Published by AlecStrong about 2 years ago
getObject
method supports automatic filling of the actual type. (#3401 by Rob X)Published by AlecStrong over 2 years ago
sqldelight {
MyDatabase {
dialect("app.cash.sqldelight:postgres-dialect:2.0.0-alpha03")
}
}
AfterVersionWithDriver
type was removed in favour of AfterVersion
which now always has the driver.Schema
type is no longer a subtype of SqlDriver
PreparedStatement
APIs are now called with zero-based indexes.Published by AlecStrong over 2 years ago
Published by AlecStrong over 2 years ago
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).
com.squareup.sqldelight
with app.cash.sqldelight
sqldelight {
MyDatabase {
package = "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
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
).Published by AlecStrong almost 3 years ago
value
will be exposed as value_
Published by AlecStrong about 3 years ago
forDatabaseFiles
callback on directories (#2532)Published by AlecStrong over 3 years ago
Published by AlecStrong over 3 years ago
Also just a general shoutout to Matthew Haughton who did a lot of work to improve the SQLDelight infrastructure this release.
Published by AlecStrong about 4 years ago
Published by AlecStrong about 4 years ago
Published by AlecStrong about 4 years ago
Published by AlecStrong about 4 years ago
AUTO_INCREMENT
support to HSQL (by Ryan Harter)