Mark
02/08/2021, 1:55 AMSupportSQLiteOpenHelper
but what if the database is read-only (as in, you never want to modify it)? Are there any best practices/optimizations for opening such a database? I know there are some cases where readableDatabase
returns a non-null value when writeableDatabase
returns null, so there could be cases where it makes more sense to call readableDatabase
. A nasty workaround is to override the helper so that the result of readableDatabase
is returned when writeableDatabase
is called. https://github.com/cashapp/sqldelight/blob/51e0621abe103761717d3d9078dcde3734ad8c0[…]ain/java/com/squareup/sqldelight/android/AndroidSqliteDriver.ktDoug McCluer
02/13/2021, 5:00 PMThomas
02/14/2021, 4:37 PMPaul Woitaschek
02/18/2021, 10:47 AMexpect class Inject
and using the javax.inject in jvmMain and use anvil to generate the factoriesCedrick Cooke
02/23/2021, 11:48 PMsaket
02/23/2021, 11:57 PMwilliam
02/25/2021, 2:05 AMmessageDao.transaction {
newMessages
.map { it.toDbMessage(groupId) }
.forEach(messageDao::insertOrIgnore)
}
and with about 1000 messages its taking 200-300 ms (on an emulator). i imagine a real device might be slightly faster but not an order of magnitude faster. Is there anything else I can do to speed this up?
table details in threadjessewilson
02/25/2021, 12:47 PMalex.tavella
02/26/2021, 6:43 PMRohan Maity
03/04/2021, 6:34 AMaiidziis
03/06/2021, 9:21 AMColton Idle
03/11/2021, 7:32 PMmiqbaldc
03/17/2021, 4:41 PManvil
support DFM?
2. Also, is there’s any guidance/reference to interop anvil
with hilt
?alex.tavella
03/31/2021, 1:01 PMreadTimeout
and writeTimeout
and not the entire call timeout which is what I actually want. I think I can just read the headers from the CallAdapter.Factory
, if that works we will be fine.Gunis
04/01/2021, 9:24 AMjava.lang.ClassNotFoundException: Didn't find class "java.time.Instant"
on serialization using desugaring
https://github.com/square/moshi/issues/1169jw
04/07/2021, 3:49 PMmapper = ::CountryData
?alec
04/07/2021, 11:31 PMDaniele B
04/08/2021, 3:03 PMPavel Sidyakin
04/08/2021, 4:08 PMDariusz Kuc
04/08/2021, 6:06 PMMemberName
and it generally works great
public data class Result(
public val myEnum: MyEnum = MyEnum.VALUE
)
Problem arise when I have multiple enums having same value as MemberName
adds explicit import to that value, i.e.
import com.expediagroup.graphql.generated.enums.MyEnum
import com.expediagroup.graphql.generated.enums.MyEnum.VALUE
Any suggestions how to fix that? Should I just reference the VALUE
from the code without using MemberName
?Philip Dukhov
04/14/2021, 8:26 AMFileSpec
?Colton Idle
04/15/2021, 11:10 AMColton Idle
04/20/2021, 8:02 PMjw
04/21/2021, 8:33 PMmyanmarking
04/22/2021, 8:11 AMiamsteveholmes
04/22/2021, 9:11 PM.../shared/src/commonMain/sqldelight/1.sqm line 1:12 - Attempting to alter something that is not a table.
1 ALTER TABLE character ADD COLUMN strength INTEGER
^^^^^^^^^
.../shared/src/commonMain/sqldelight/1.sqm line 1:12 - No table found with name character
1 ALTER TABLE character ADD COLUMN strength INTEGER
^^^^^^^^^
Jeff
04/26/2021, 3:21 PMTim Malseed
04/26/2021, 3:38 PMjw
04/26/2021, 4:06 PMxxfast
04/27/2021, 1:52 AMxxfast
04/27/2021, 1:52 AMmbonnin
04/27/2021, 8:45 AMcom.squareup.okio:okio-multiplatform:2.10.0
to your gradle script and the rest works pretty much like regular okio.xxfast
04/27/2021, 8:49 AM<http://java.io|java.io>.File
, (such as file.source().buffer()
) which i think is not available in multiplatform land 🤔 is that right?mbonnin
04/27/2021, 8:54 AMFile
is not multiplatform, there's some new stuff to do that kind of things in recent (maybe unreleased) version3.0.0-alpha4
which is the latest alpha as of todayxxfast
04/27/2021, 8:56 AMFileHandle