Skip to content
This repository
tree: 08d621ab6e
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (12 sloc) 0.404 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
module HSPR.SessionHandlers.PostgreSQL where

import HSPR.SessionHandlers.GenericDB
import Database.HaskellDB.HSQL.PostgreSQL


sessionHandler = mkSessionDB connection

connection = postgresqlConnect options
  where options = PostgreSQLOptions {
         server = "@DB_HOST@",
         db = sessionDBname,
         uid = "@DB_UID@",
         pwd = "@DB_PWD@"
         }

sessionDBname = "@DB_NAME@"
Something went wrong with that request. Please try again.