Re: [Haskell-cafe] acid-state audit trail

2012-10-19 Thread Jeremy Shaw
Right now acid-state always tries to restore everything up through the latest events. The long term plan is to create an acid-state tool that would allow you to rollback the event log, list and examine specific events, etc. So, it is possible in theory, and not even that hard, but no one has done

Re: [Haskell-cafe] acid-state audit trail

2012-10-19 Thread Richard Wallace
Ok, cool. Any idea if you can get a list of events, or can you just get the latest state? Thanks, Rich On Oct 19, 2012 3:53 AM, "Neil Davies" wrote: > The history is there until you "archive" (move a checkpoint out into a > separate directory) it and then delete the archive yourself. > > the che

Re: [Haskell-cafe] acid-state audit trail

2012-10-19 Thread Neil Davies
The history is there until you "archive" (move a checkpoint out into a separate directory) it and then delete the archive yourself. the checkpointing just reduces the recovery time (i.e creates a fixed point in time), if you were to keep all the checkpoint/archives then you would have the compl

[Haskell-cafe] acid-state audit trail

2012-10-18 Thread Richard Wallace
Hey all, I've been looking at acid-state as a possible storage backend for an application. It looks like it fits my needs pretty damn well, but one thing that I'm curious about is if it is possible to get a list of "update events". You can obviously query for the current state, but it's not imme

Re: [Haskell-cafe] acid state

2011-12-13 Thread Anatoly Yakovenko
Ah, i think i get it. On Tue, Dec 13, 2011 at 12:48 AM, Felipe Almeida Lessa wrote: > On Tue, Dec 13, 2011 at 4:55 AM, Anatoly Yakovenko > wrote: >> So I am trying to understand how acid state works.  The HelloWorld >> example has a >> >> type Message = String >> data Database = Database [Messag

Re: [Haskell-cafe] acid state

2011-12-13 Thread Felipe Almeida Lessa
On Tue, Dec 13, 2011 at 4:55 AM, Anatoly Yakovenko wrote: > So I am trying to understand how acid state works.  The HelloWorld > example has a > > type Message = String > data Database = Database [Message] > > $(deriveSafeCopy 0 'base ''Database) > > -- Transactions are defined to run in either th

[Haskell-cafe] acid state

2011-12-12 Thread Anatoly Yakovenko
So I am trying to understand how acid state works. The HelloWorld example has a type Message = String data Database = Database [Message] $(deriveSafeCopy 0 'base ''Database) -- Transactions are defined to run in either the 'Update' monad -- or the 'Query' monad. addMessage :: Message -> Update