B:BD[
3.4077] → [
3.4077:4160]
B:BD[
3.4160] → [
5.104:242]
∅:D[
5.242] → [
3.4291:4371]
∅:D[
6.1637] → [
3.4291:4371]
B:BD[
3.4291] → [
3.4291:4371]
recordEvent :: SQLiteHandle -> LogEntry -> IO ()
recordEvent h (LogEntry ba ev) =
void $ insertRow h "workEvents" [ ("btcAddr", unpack (address ba))
, ("event", unpack (eventName ev))
, ("eventTime", formatSqlTime (logTime ev)) ]
recordEvent' :: LogEntry -> ReaderT SQLiteHandle (EitherT Text IO) ()
recordEvent' (LogEntry ba ev) = do
db <- ask
lift . lift . void $ insertRow db "workEvents"
[ ("btcAddr", unpack (address ba))
, ("event", unpack (eventName ev))
, ("eventTime", formatSqlTime (logTime ev)) ]