File tree Expand file tree Collapse file tree 2 files changed +569
-0
lines changed
src/Simplex/Messaging/Agent/Store/Postgres/Migrations Expand file tree Collapse file tree 2 files changed +569
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ flag client_library
6767 manual : True
6868 default : False
6969
70+ flag client_postgres
71+ description : Build with PostgreSQL instead of SQLite.
72+ manual : True
73+ default : False
74+
7075library
7176 exposed-modules :
7277 Simplex.FileTransfer.Agent
@@ -91,6 +96,7 @@ library
9196 Simplex.Messaging.Agent.RetryInterval
9297 Simplex.Messaging.Agent.Stats
9398 Simplex.Messaging.Agent.Store
99+ Simplex.Messaging.Agent.Store.Postgres.Migrations.M20241210_initial
94100 Simplex.Messaging.Agent.Store.SQLite
95101 Simplex.Messaging.Agent.Store.SQLite.Common
96102 Simplex.Messaging.Agent.Store.SQLite.DB
@@ -280,6 +286,9 @@ library
280286 build-depends :
281287 case-insensitive == 1.2. *
282288 , hashable == 1.4. *
289+ if flag(client_postgres)
290+ build-depends :
291+ postgresql-simple == 0.6. *
283292 if impl(ghc >= 9.6.2 )
284293 build-depends :
285294 bytestring == 0.11. *
@@ -469,3 +478,6 @@ test-suite simplexmq-test
469478 , warp-tls
470479 , yaml
471480 default-language : Haskell2010
481+ if flag(client_postgres)
482+ build-depends :
483+ postgresql-simple == 0.6. *
You can’t perform that action at this time.
0 commit comments