mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-03 06:51:43 +00:00
20fa30eacc
* core: Mobile.hs postgres interface * sqlite * fix * errors * postgres * rename * rename, refactor * merge files * rename * update simplexmq --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
26 lines
575 B
Haskell
26 lines
575 B
Haskell
{-# LANGUAGE CPP #-}
|
|
|
|
module Simplex.Chat.Options.DB
|
|
|
|
#if defined(dbPostgres)
|
|
( module Simplex.Chat.Options.Postgres,
|
|
FromField (..),
|
|
ToField (..),
|
|
)
|
|
where
|
|
import Simplex.Chat.Options.Postgres
|
|
import Database.PostgreSQL.Simple.FromField (FromField (..))
|
|
import Database.PostgreSQL.Simple.ToField (ToField (..))
|
|
|
|
#else
|
|
( module Simplex.Chat.Options.SQLite,
|
|
FromField (..),
|
|
ToField (..),
|
|
)
|
|
where
|
|
import Simplex.Chat.Options.SQLite
|
|
import Database.SQLite.Simple.FromField (FromField (..))
|
|
import Database.SQLite.Simple.ToField (ToField (..))
|
|
|
|
#endif
|