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 1
1
namespace SqlStreamStore.FSharp.Postgres
2
2
3
+ open SqlStreamStore.FSharp
4
+
3
5
type PostgresConfig =
4
6
{ host: string
5
7
port: string
@@ -58,5 +60,10 @@ module Postgres =
58
60
let createStoreWithConfigString ( config : string ): SqlStreamStore.PostgresStreamStore =
59
61
new SqlStreamStore.PostgresStreamStore( SqlStreamStore.PostgresStreamStoreSettings( config))
60
62
61
- let createSchema ( store : SqlStreamStore.PostgresStreamStore ): Async < unit > =
63
+ let createSchemaRaw ( store : SqlStreamStore.PostgresStreamStore ): Async < unit > =
62
64
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