Alternatively is there a way to create a UTCTime value from an epoch integer
(no of seconds since epoch).
I can't find a suitable constructor with Hoogle.
thank you in advance,
George.
On Thu, Jun 19, 2008 at 10:08 PM, George Moschovitis
[EMAIL PROTECTED] wrote:
Hello,
I am HDBC
Hello,
I am HDBC with the Postgres driver. I am trying to read a simple date column
from the DB:
stmt - DB.prepare conn SELECT date FROM my_table ORDER BY date DESC LIMIT
1
DB.execute stmt []
DB.commit conn
rows - fetchAllRows' stmt
let ((d:_):_) = rows
the d variable is of type:
SqlEpochTime
Dear devs,
is it possible to create a FCGI server that listens to a specific port using
the Haskell FCGI library?
The front end web server would then communicate with this back end FCGI
server through this port.
A small example would be really appreciated.
thanks,
George.
--
Ok, I am evaluating HDBC. I wrote a simple test program:
...
Can I get a more specific error? Is there a way to inspect this exception
more deeply?
handleSqlError does the trick, for other newbies:
main =
handleSqlError $
do
dbc - connectPostgreSQL dbname=test user=postgres
Dear devs,
I am a Haskell newbie and I would like to hear your suggestions regarding a
Database conectivity library:
HSQL or HDBC ?
which one is better / more actively supported?
thanks in advance,
-g.
--
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr