Alex
06/23/2025, 1:29 PMlast_insert_rowid()
Unknown function last_insert_rowid
SELECT last_insert_rowid()
^^^^^^^^^^^^^^^^^^^
last_insert_rowid()
is a part of SQLite, is there some kind of change made to override this in the latest update? I was unable to find anything directly referencing it in the changelogsursus
06/25/2025, 1:33 PMRyan Woodcock
06/27/2025, 4:51 AMColton Idle
06/29/2025, 2:38 PMjessewilson
06/29/2025, 5:06 PM5.0.0-alpha.17
in your projects and let me know if you run into any surprises?
OkHttp 5.x introduces separate -jvm
and -android
artifacts. We’ve had reports (issue 8826) that some builds incorrectly classes from both a okhttp-android
5.x artifact and a okhttp
4.x artifact, which causes crashes at runtime. I haven’t been able to reproduce this. If you can repro this, please reply on thread; I’d love to get to the bottom of this.
My intention is for 5.x to have zero backwards-incompatible changes with 4.12. If you see any, again please let me know.Zoltan Demant
07/04/2025, 4:17 AMprivate val database by lazy {
scope.async { init() }
}
suspend fun database() = database.await()
The suspend fun init()
function creates the actual database and makes sure some template data is inserted the first time around. The whole point is that this happens before other areas of my app can touch the database. Ive been doing this for years and it has worked brilliantly, but recently something seems to have changed: under some scenario, the database is accessed before the template data is inserted. Ill add some more details in 🧵 in order to keep this somewhat short.Vivek Modi
07/09/2025, 10:41 PMMark
07/10/2025, 6:58 AMAdam S
07/10/2025, 7:28 AMAdam S
07/11/2025, 10:20 AM.sq
file? https://sqldelight.github.io/sqldelight/2.1.0/jvm_sqlite/foreign_keys/Joel Wilcox
07/18/2025, 12:18 AMshikhar
07/23/2025, 3:11 AMKamilH
07/28/2025, 8:08 AMursus
07/29/2025, 10:50 PMskominas.ainis
08/01/2025, 8:34 AMKev
08/03/2025, 8:20 AMColton Idle
08/11/2025, 2:51 PMColton Idle
08/11/2025, 3:12 PMfun sendSync(req: Req): Res
return runBlocking {
sendAsync()
}
suspend fun sendAsync() {...}
ursus
08/11/2025, 3:25 PM> Task :foo:app:minifyTstStableReleaseWithR8 FAILED
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/bar/AndroidStudioProjects/foo/app/build/outputs/mapping/tstStableRelease/missing_rules.txt.
ERROR: R8: Missing class okhttp3.internal.Util (referenced from: void okhttp3.internal.sse.RealEventSource.processResponse(okhttp3.Response) and 1 other context)
Anyone else experiencing this?Deep Patel
08/16/2025, 4:19 AMColton Idle
08/21/2025, 1:44 PMAn HTTP request. Instances of this class are immutable if their body is null or itself immutable.Like if this was written in kotlin would it just be a data class?
ursus
08/22/2025, 1:04 PMturbine
gurus could chime in
private val _state = MutableStateFlow<ChatState>(ChatState.Idle)
override val state: Flow<ChatState> get() = _state
scope.launch {
combine(
conversationDao.conversation.doOnNext { println("-- CONVERSATION=$it") },
connector.connectionState.doOnNext { println("-- CONN_STATE=$it") },
::stateMapper
)
.collect {
println("--- PRODUCED=$it")
_state.value = it
}
}
I have combine
which produces as a result and pipes it into stateflow _state
. That state
flow is then asserted at test time with turbine (ommited)
Issue is that for some reason this is not deterministic. Default value of connectionState
is Disconnected
and then obviously Connecting etc
What I'm seeing is that sometimes I see Connecting
getting emitted before the product of combining with Disconnected
gets set to the _state
Othertimes it's not and I see 2 `--- PRODUCED`as expected.
Is this a StateFlow
issue? A combine
issue? A Turbine issue? A TestDispatcher
issue?
Should I maybe not assert all the intermediary emits and just the last one using?Alexander Ioffe
08/29/2025, 8:55 PMsqliter.Cursor
from SqliterSqlCursor, ResultSet
from JdbcCursor, etc... or
2. Expose some kind of CursorMetadata
API?
I'm trying to see if I can integrate my libraries Terpal/ExoQuery with SQLDelight and the missing piece seems to be DB result-set metadata.andylamax
08/31/2025, 9:32 AMfun dependency(dependencyProject: Project)
fun dependency(delegatedProject: DelegatingProjectDependency)
The issue that I have here is that, the dependencies are defined inside a composite build (not just a subproject). And I am having a hard time getting an instance of that subproject. If anyone can help me how to achieve this, I will greatly appreciateShubham Singh
08/31/2025, 2:14 PMandylamax
09/02/2025, 1:57 PMCREATE TABLE IF NOT EXISTS ow_core_people(
uid INTEGER PRIMARY KEY NOT NULL AUTO_INCREMENT,
name TEXT NOT NULL,
photo TEXT
);
Because AUTO_INCREMENT doesn't work on SQLite, it just works on MySQL but fails on SQLite.
Is there a way for SQLDelight to support these multiple syntax and transform them in accordance to the dialect selected?Colton Idle
09/07/2025, 4:58 AMursus
09/09/2025, 11:30 AMsqldelight
kotlin migrations, I need to have atleast a placeholder .sqm
file.
This is error prone, as nothing seems to enforce the .sqm
file.
Has anyone figured out a way to blow up such state? (.kt
migration present but .sqm
not)Slackbot
09/10/2025, 10:32 AMeygraber
09/12/2025, 6:58 PM