Skip to content

Commit

Permalink
Support setting lookasideSlotSize and lookasideSlotCount.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaoyuang committed Jun 24, 2022
1 parent 6794430 commit 5cac4dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ data class DatabaseConfiguration(
val pageSize: Int? = null,
val basePath: String? = null,
val synchronousFlag: SynchronousFlag? = null,
val recursiveTriggers: Boolean = false
val recursiveTriggers: Boolean = false,
val lookasideSlotSize: Int = -1,
val lookasideSlotCount: Int = -1,
)
data class Logging(
val logger: Logger = WarningLogger,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class NativeDatabaseManager(private val path:String,
"sqliter",
false,
false,
-1,
-1,
configuration.extendedConfig.lookasideSlotSize,
configuration.extendedConfig.lookasideSlotCount,
configuration.extendedConfig.busyTimeout,
configuration.loggingConfig.logger,
configuration.loggingConfig.verboseDataCalls
Expand Down

0 comments on commit 5cac4dd

Please sign in to comment.