hfhbd
01/13/2022, 10:22 AMderiveSchemaFromMigration
, and create a 0.sqm
file describing you init schema, and put your changes in 1.sqm
etc. The sqldelight compiler can validate your migrations.spierce7
01/13/2022, 3:53 PMjessewilson
01/13/2022, 4:21 PMspierce7
01/16/2022, 5:57 AMDATE_ADD
function with the INTERVAL
syntax, because it shows a type error:
INSERT INTO PendingInstallation(
id,
verification_code,
expiration
) VALUES (
UUID(),
UUID(),
DATE_ADD(now(), INTERVAL 2 HOUR)
);
It seems unreasonable for me to expect that sqldelight can just magically support every nook and cranny of the mysql dialect, and I really enjoy the typesafety it gives me on SELECT statements, and the parameter names etc on other statements, but I feel like most of the interesting things I’ve been working with today, I’ve spent time trying to work around using mysql features that sqldelight doesn’t seem to support.hfhbd
01/16/2022, 10:58 AMdriver.execute
... You could add your syntax to https://github.com/AlecStrong/sql-psispierce7
01/18/2022, 9:15 PMalec
01/18/2022, 9:16 PMPaul Woitaschek
01/19/2022, 4:44 PMjw
01/19/2022, 4:48 PMjw
01/19/2022, 4:49 PMalec
01/19/2022, 4:49 PMImpl
alec
01/19/2022, 4:49 PMalec
01/19/2022, 4:49 PMalec
01/19/2022, 4:50 PMalec
01/19/2022, 4:50 PMjw
01/19/2022, 4:52 PMPaul Woitaschek
01/19/2022, 4:53 PMPaul Woitaschek
01/19/2022, 4:54 PMPaul Woitaschek
01/19/2022, 4:55 PMPaul Woitaschek
01/19/2022, 4:56 PMjw
01/19/2022, 5:02 PMPaul Woitaschek
01/19/2022, 5:04 PMjw
01/19/2022, 5:06 PMPaul Woitaschek
01/19/2022, 5:06 PMColton Idle
01/23/2022, 4:24 AMRefreshTokenAuthenticator
that on a 401 calls myApiService.getNewAuthTokenWithRefreshToken
to trade in a refresh token for a new auth token.
My dependency graph looks like this:
RetrofitService
-> OkHttpClient
-> RefreshTokenAuthenticator
-> RetrofitService!?!?
Do I have a legitimate use case for Lazy in dagger, or should my Authenticator not be calling my apiService?jessewilson
01/23/2022, 6:12 AMephemient
01/23/2022, 6:35 AMColton Idle
01/23/2022, 6:36 AMephemient
01/23/2022, 7:33 AMColton Idle
01/23/2022, 7:48 AMreturn response
.request
.newBuilder()
.header("Authorization", "Bearer: ${appUserManager.authToken!!}")
.build()
and we seem to be back in business. I thought it re-ran the request again, which would call all of my other interceptors again (which would have given the request the updated token) but it instead seems like it just runs that request identically to before. So with my change above, I think we're in a good spot.