database Builder
inline fun <T : RoomDatabase> databaseBuilder(name: String, noinline factory: () -> T, block: StitchRoomConfig<T>.() -> Unit = {}): RoomDatabase.Builder<T>
Constructs a managed platform-wrapped RoomDatabase.Builder inside common KMP layers.
Return
A RoomDatabase.Builder configured according to the provided block.
Parameters
name
The name of the database file. Ignored if StitchRoomConfig.pathStrategy is DatabasePath.InMemory.
factory
The factory function to create the RoomDatabase instance.
block
Configuration block for StitchRoomConfig.
Type Parameters
T
The type of the RoomDatabase.