Skip to content

Commit

Permalink
Merge pull request #74 from qiaoyuang/main
Browse files Browse the repository at this point in the history
Support setting lookasideSlotSize and lookasideSlotCount.
  • Loading branch information
kpgalligan committed Jun 29, 2022
2 parents c9d7560 + 5cac4dd commit 86851ea
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 86851ea

Please sign in to comment.