From: Justin B. <jgb...@gm...> - 2009-04-06 15:35:31
|
For specifics on using HDBC-ODBC, you'll want to look at their documentation. Each driver is a little different. Here is what i used to connect to postgres: import Database.HaskellDB.HDBC.PostgreSQL ... login :: MonadIO m => String -> Int -> String -> String -> String -> (Database -> m a) -> m a login server port user password dbname = postgresqlConnect [("host", server), ("port", show port), ("user", user), ("password", password), ("dbname", dbname)] On Sun, Apr 5, 2009 at 9:05 AM, Guenther Schmidt <gue...@we...> wrote: > Hi all, > > how can I "connect" to an ODBC data base, ie. what do I need for "withDB" ? > > Günther > > > ------------------------------------------------------------------------------ > _______________________________________________ > Haskelldb-users mailing list > Has...@li... > https://lists.sourceforge.net/lists/listinfo/haskelldb-users > |