I suspect you might have more luck by creating a custom FilePath that wraps
the existing FilePathMem (i.e. the jdbc h2:mem: functionality) which you
can use to copy/restore the db.

You'd still need to open/close H2, but you could avoid the seed data step.

With some real cleverness, you could define a snapshot point, and store
modifications on top of that, and then just throw the modifications away.
​

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to