mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-04-25 18:32:21 +00:00
* smp server: queue store typeclass * parameterize JournalMsgStore * typeclass for queue store * postgres WIP * compiles, passes tests * remove StoreType * split migrations * progress * addQueueRec * reduce type spaghetti * remove addQueue from typeclass definition * getQueue * test postgres storage in SMP server * fix schema * comment * import queues to postgresql * import queues to postgresql * log * fix test * counts * ci: test smp server with postgres backend (#1463) * ci: test smp server with postgres backend * postgres service * attempt * attempt * empty * empty * PGHOST attempt * PGHOST + softlink attempt * only softlink attempt * working attempt (PGHOST) * remove env var * empty * do not start server without DB schema, do not import when schema exists * export database * enable all tests, disable two tests * option for migration confirmation * comments --------- Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
19 lines
401 B
Haskell
19 lines
401 B
Haskell
{-# LANGUAGE CPP #-}
|
|
|
|
module Simplex.Messaging.Agent.Store.DB
|
|
#if defined(dbPostgres)
|
|
( module Simplex.Messaging.Agent.Store.Postgres.DB,
|
|
FromField (..),
|
|
ToField (..),
|
|
)
|
|
where
|
|
import Simplex.Messaging.Agent.Store.Postgres.DB
|
|
#else
|
|
( module Simplex.Messaging.Agent.Store.SQLite.DB,
|
|
FromField (..),
|
|
ToField (..),
|
|
)
|
|
where
|
|
import Simplex.Messaging.Agent.Store.SQLite.DB
|
|
#endif
|