SimpleFsStorageProvider works

This commit is contained in:
array-in-a-matrix 2023-12-09 16:37:56 -05:00
parent 1be944b77a
commit b4b45d677a
2 changed files with 6 additions and 3 deletions

View file

@ -10,3 +10,6 @@ export sendReadReceipt, setTyping, replyText, replyHtmlText, replyNotice, replyH
import nimbotsdk/AutojoinRoomsMixin
export AutojoinRoomsMixinSetupOnClient, AutojoinRoomsMixinSetupOnAppservice
import nimbotsdk/SimpleFsStorageProvider
export newSimpleFsStorageProvider

View file

@ -3,5 +3,5 @@
import matrixTypes
proc newSimpleFsStorageProvider*(filename: cstring): Storage {.importjs: "new SimpleFsStorageProvider(#)".}
proc newSimpleFsStorageProvider*(filename: cstring, trackTransactionsInMemory: bool): storage {.importjs: "new SimpleFsStorageProvider(#, #)".}
proc newSimpleFsStorageProvider*(filename: cstring, trackTransactionsInMemory: bool, maxInMemoryTransactions: int): storage {.importjs: "new SimpleFsStorageProvider(#, #, #)".}
proc newSimpleFsStorageProvider*(filename: cstring, trackTransactionsInMemory: bool): Storage {.importjs: "new SimpleFsStorageProvider(#, #)".}
proc newSimpleFsStorageProvider*(filename: cstring, trackTransactionsInMemory: bool, maxInMemoryTransactions: int): Storage {.importjs: "new SimpleFsStorageProvider(#, #, #)".}