File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11namespace SqlStreamStore.FSharp.Postgres
22
3+ open SqlStreamStore.FSharp
4+
35type PostgresConfig =
46 { host: string
57 port: string
@@ -58,5 +60,10 @@ module Postgres =
5860 let createStoreWithConfigString ( config : string ): SqlStreamStore.PostgresStreamStore =
5961 new SqlStreamStore.PostgresStreamStore( SqlStreamStore.PostgresStreamStoreSettings( config))
6062
61- let createSchema ( store : SqlStreamStore.PostgresStreamStore ): Async < unit > =
63+ let createSchemaRaw ( store : SqlStreamStore.PostgresStreamStore ): Async < unit > =
6264 store.CreateSchemaIfNotExists() |> Async.AwaitTask
65+
66+ let createSchema ( store : SqlStreamStore.PostgresStreamStore ): Async < Result < unit , string >> =
67+ store.CreateSchemaIfNotExists()
68+ |> Async.AwaitTask
69+ |> ExceptionsHandler.simpleExceptionHandler
You can’t perform that action at this time.
0 commit comments