Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 310f38dd7d
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.719 kb
module Config.Database (
databaseConnection,
ormAdapter
) where
import System.Log.Logger
import Database.HDBC
-- Your favorite HDBC driver
import Database.HDBC.ODBC
import qualified Turbinado.Database.ORM.Adapters.MySQL as M
import Turbinado.Environment.Types
----------------------------------------------------------------
-- Database connection
----------------------------------------------------------------
--databaseConnection :: Maybe (IO c)
-- databaseConnection = Nothing
--databaseConnection = Just $ connectPostgreSQL "host=localhost dbname=turbinado user=turbinado password=turbinado"
databaseConnection = Just $ connectODBC "DSN=turbinado;USER=user;password=password"
ormAdapter = M.ormAdapter
Jump to Line
Something went wrong with that request. Please try again.