Hi,

What you could also do is use an in-memory database, but when opening run
an init script to load all the data. Please note the init script is run
whenever a new connection is opened - so if you open multiple connections
you need to make sure the data is only created once. See also

http://h2database.com/html/features.html?highlight=init&search=init#execute_sql_on_connection

Regards,
Thomas



On Thu, Jul 11, 2013 at 12:29 AM, <[email protected]> wrote:

> i've tested reading from a zip file.
> i've also tested reading and writing to memory db
>
> can you provide hints on how to merge it such that i can read from both
> memory and zip file
> but can only write to memory
>
>
> On Wednesday, July 10, 2013 3:17:13 PM UTC, [email protected] wrote:
>>
>> is it possible to have h2 access database from file as readonly and then
>> commit all changes to RAM
>> so that once db is closed all changes are lost.
>>
>> on a running h2 instance querying would read from both the RAM version
>> and readonly db
>>
>  --
> 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 http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to