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

@ -9,4 +9,7 @@ export newMatrixClient, start, onRoomMessage
export sendReadReceipt, setTyping, replyText, replyHtmlText, replyNotice, replyHtmlNotice, sendNotice, sendHtmlNotice, sendText, sendHtmlText, sendMessage, sendEvent, sendRawEvent, sendStateEvent, redactEvent
import nimbotsdk/AutojoinRoomsMixin
export AutojoinRoomsMixinSetupOnClient, AutojoinRoomsMixinSetupOnAppservice
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(#, #, #)".}