8000 Settings module · postgres-haskell/postgres-wire@940c730 · GitHub
[go: up one dir, main page]

Skip to content

Commit 940c730

Browse files
Settings module
1 parent 9298c56 commit 940c730

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{-# language OverloadedStrings #-}
2+
3+
module Database.PostgreSQL.Protocol.Settings where
4+
5+
import Data.Word (Word16)
6+
import Data.ByteString (ByteString)
7+
8+
data ConnectionSettings = ConnectionSettings
9+
{ connHost :: ByteString
10+
, connPort :: Word16
11+
, connDatabase :: ByteString
12+
, connUser :: ByteString
13+
, connPassword :: ByteString
14+
} deriving (Show)
15+
16+
defaultConnectionSettings :: ConnectionSettings
17+
defaultConnectionSettings = ConnectionSettings
18+
{ connHost = ""
19+
, connPort = 5432
20+
, connDatabase = "postgres"
21+
, connUser = "postgres"
22+
, connPassword = ""
23+
}
24+

0 commit comments

Comments
 (0)
0