LUM4VQJIHJKQWWD5NVWTVSNPKQTMGQQICTFOTM6W4BMME2G3G5RQC
MWUPXTBF2LATVOJLJTXSDFB3OMFGMXDNETWJA3JHUOUBTUJ7WJAAC
TZQJVHBAMDNWDBYCDE3SDVGBG2T5FOE3J5JAD6NENRW36XBHUUFQC
64VI73NPSFNWTL6UXM6YHRFLNJZ3NUJ2R3CL53MO2HSZWFGBIRTQC
64C6AWH66FDKU6UE6Z6JPX2J2GBM2JOPTH2GL6LHKAIUBGNGDZ5AC
EMVTF2IWNQGRL44FC4JNG5FYYQTZSFPNM6SOM7IAEH6T7PPK2NVAC
FRPWIKCNGK6PM6VCKEHEUG5A2LWL7WFN66L4CPQ7DLN4WAS3TIZQC
75N3UJ4JK56KXF56GASGPAWLFYGJDETVJNYTF4KXFCQM767JUU5AC
NVOCQVASZWTKQJG7GPH7KHKZZR7NUG4WLV5YY4KAIRPCJRWCZPIAC
let baseResult = EitherT $ execStatement db "SELECT btcAddr, event, eventTime from workEvents"
rows <- lift $ bimapEitherT pack id baseResult
return . intervals . catMaybes $ fmap parseRow (join rows)
let selection = execStatement db "SELECT btcAddr, event, eventTime from workEvents"
rows <- lift . EitherT $ fmap (over _Left pack) selection
return . intervals . catMaybes $ fmap parseLogEntry (join rows)
eventTable = Table "workEvents" [ Column "btcAddr" (SQLVarChar 256) []
, Column "event" (SQLVarChar 64) []
, Column "eventTime" (SQLDateTime DATETIME) []
] []
eventTable = Table "workEvents"
[ Column "btcAddr" (SQLVarChar 256) []
, Column "event" (SQLVarChar 64) []
, Column "eventTime" (SQLDateTime DATETIME) []
] []
auctionTable = Table "auctions" [ Column "raiseAmouont" (SQLInt BIG False False) []
, Column "endsAt" (SQLDateTime DATETIME) []
] []
auctionTable = Table "auctions"
[ Column "raiseAmouont" (SQLInt BIG False False) []
, Column "endsAt" (SQLDateTime DATETIME) []
] []