jw
11/30/2022, 5:16 PMKristian Nedrevold
11/30/2022, 7:52 PMjw
11/30/2022, 7:54 PMKristian Nedrevold
11/30/2022, 7:55 PMjw
11/30/2022, 7:58 PMalec
11/30/2022, 7:59 PMDerek Ellis
11/30/2022, 8:04 PMgenerateAsync = true
in your sqldelight config. Setting up a driver is similar to JDBC where you pass the R2DBC driver an R2DBC connection
and then for all your actual database operations you have to either add .await()
to the end of your call or using an .await*()
extension helper (e.g. .awaitQuery()
)
The one catch is that the only supported R2DBC driver right now is MySQLJan Skrasek
12/01/2022, 10:39 AMAaron Todd
12/05/2022, 10:17 PMtag
APIs). What is the plan here? I'm assuming binary compatibility isn't a goal? If so can/should okhttp package name change so that 4.x and 5.x can co-exist on the same classpath without resorting to shading?jw
12/05/2022, 10:23 PMyschimke
12/05/2022, 10:29 PMAaron Todd
12/05/2022, 10:45 PMjava.lang.NoSuchMethodError: 'okhttp3.Request$Builder okhttp3.Request$Builder.tag(kotlin.reflect.KClass, java.lang.Object)'
and response.body
nullability differences
We can work around both of these fine, you just have to be aware of the binary differences which is what brought me to my question.yschimke
12/05/2022, 10:49 PMyschimke
12/05/2022, 10:49 PMyschimke
12/05/2022, 10:50 PMyschimke
12/05/2022, 10:51 PMyschimke
12/05/2022, 10:52 PMAaron Todd
12/05/2022, 10:55 PMyschimke
12/05/2022, 10:59 PMyschimke
12/05/2022, 10:59 PMAaron Todd
12/05/2022, 11:06 PMjw
12/05/2022, 11:31 PMAaron Todd
12/05/2022, 11:53 PMjessewilson
12/06/2022, 1:46 AMyschimke
12/06/2022, 6:43 AMMohamed Ibrahim
12/07/2022, 12:02 PMjw
12/07/2022, 12:12 PMLasse Magnussen
12/08/2022, 11:33 AM{
"title": "Some title",
"description": "Description of something",
"amount": 1000,
"currency": "NOK",
"metadata": {
"more": "stuff"
}
}
I’d like to unflatten amount
and currency
into a its own object when deserialising:
data class Item(val title: String, val description: String, val money: Money, val metadata: MetaData)
data class Money(val amount: Int, val currency: String)
Is this doable in a generic-ish way in Moshi? I’d like for that to extend to any Retrofit response object we deem worthy.
If no, I guess the alternative would be the less neat:
data class Item(val title: String, val description: String, val amount: Int, val currency String, val metadata: MetaData) {
val money: Money = Money(amount, currency)
}
which I’d like to avoid.Eduard Boloș
12/09/2022, 12:06 PMJohn O'Reilly
12/11/2022, 10:27 AM