mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-30 09:59:59 +00:00
* smp server: split postgres support to a separate executable, to not require postgres library in the main binary * comments * enable server_postgres flag by default, add CPP option to test * refactor * change default for server_postgres to False * diff
17 lines
415 B
Haskell
17 lines
415 B
Haskell
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
module Fixtures where
|
|
|
|
import Data.ByteString (ByteString)
|
|
import Database.PostgreSQL.Simple (ConnectInfo (..), defaultConnectInfo)
|
|
|
|
testDBConnstr :: ByteString
|
|
testDBConnstr = "postgresql://test_agent_user@/test_agent_db"
|
|
|
|
testDBConnectInfo :: ConnectInfo
|
|
testDBConnectInfo =
|
|
defaultConnectInfo {
|
|
connectUser = "test_agent_user",
|
|
connectDatabase = "test_agent_db"
|
|
}
|