File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ module Postgres =
24
24
config.database
25
25
26
26
let private poolingSettings ( pooling : PoolingConfig ): string =
27
- let minSize = pooling.minPoolSize |> Option.defaultValue 0
27
+ let minSize =
28
+ pooling.minPoolSize |> Option.defaultValue 0
28
29
29
30
let maxSize =
30
31
pooling.maxPoolSize |> Option.defaultValue 100
@@ -54,5 +55,8 @@ module Postgres =
54
55
new SqlStreamStore.PostgresStreamStore( SqlStreamStore.PostgresStreamStoreSettings
55
56
( storeSettingsWithPooling config pooling))
56
57
58
+ let createStoreWithConfigString ( config : string ): SqlStreamStore.PostgresStreamStore =
59
+ new SqlStreamStore.PostgresStreamStore( SqlStreamStore.PostgresStreamStoreSettings( config))
60
+
57
61
let createSchema ( store : SqlStreamStore.PostgresStreamStore ): Async < unit > =
58
62
store.CreateSchemaIfNotExists() |> Async.AwaitTask
You can’t perform that action at this time.
0 commit comments