Skip to content

Commit 5cac4dd

Browse files
committed
Support setting lookasideSlotSize and lookasideSlotCount.
1 parent 6794430 commit 5cac4dd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

sqliter-driver/src/nativeCommonMain/kotlin/co/touchlab/sqliter/DatabaseConfiguration.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ data class DatabaseConfiguration(
4848
val pageSize: Int? = null,
4949
val basePath: String? = null,
5050
val synchronousFlag: SynchronousFlag? = null,
51-
val recursiveTriggers: Boolean = false
51+
val recursiveTriggers: Boolean = false,
52+
val lookasideSlotSize: Int = -1,
53+
val lookasideSlotCount: Int = -1,
5254
)
5355
data class Logging(
5456
val logger: Logger = WarningLogger,

sqliter-driver/src/nativeCommonMain/kotlin/co/touchlab/sqliter/native/NativeDatabaseManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class NativeDatabaseManager(private val path:String,
4949
"sqliter",
5050
false,
5151
false,
52-
-1,
53-
-1,
52+
configuration.extendedConfig.lookasideSlotSize,
53+
configuration.extendedConfig.lookasideSlotCount,
5454
configuration.extendedConfig.busyTimeout,
5555
configuration.loggingConfig.logger,
5656
configuration.loggingConfig.verboseDataCalls

0 commit comments

Comments
 (0)