-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration 1.2.0 DatabaseClient.sql #500
Comments
Just had to do a migration myself, the upgrade guide was a good starting point. Seems the options are:
For the last option in Kotlin: databaseClient
.execute(someSql)
.`as`(Type::class.java)
.fetch()
.all() becomes databaseClient
.sql(someSql)
.map{ row, meta -> mappingR2dbcConverter.read(Type::class.java, row, meta)}
.all() |
Isn't the .map() synchronous? Also, I couldn't find any example on using the MappingR2dbcConverter in the docs.
|
I have created a small Kotlin project, which addresses this issue: |
|
Hi,
I am trying to migrate my application to 1.2.1 and I am having trouble with the new database client DSL to execute SQL statements. With the previous DatabaseClient you could do
But now the
GenericExecuteSpec
doesn't provide anas
method. What would be the way to achieve the same result now without having to have a custom mapper for each type ?Thanks a lot
The text was updated successfully, but these errors were encountered: