Hi,

the extension must not be changed.

See http://www.h2database.com/html/features.html#database_file_layout
 and there the topic "Moving and Renaming Database Files".

I'll change the documentation to:

While a database is closed, the files can be moved to another
directory, and they can be renamed
as well (as long as all files start with the same name and the
respective extensions are unchanged).

The only way to change it would be to edit org.h2.engine.Constants.
There are constants defined for the file extensions.

Regards

Christian


On May 7, 12:43 am, Paluee <[email protected]> wrote:
> Hi there,
>
> I read on the website that one can rename the file extension of H2, no
> problem.
> But I ran into a problem.
>
> I created a CRUD database.
> When I issued a statement to create file on disk, H2 appends to the
> file name: ".h2db",
> how to I override this. Is there a method I am missing.
>
> Also, I said to myself fine, I will create the file and then
> physically rename its file extension.
> So i created : firstFile.h2db ---> re-named it to : firstFile.ppyt.
>
> When I tried to read the file with my java app, it would not read it.
> It will only read it if its file extension is : firstFile.h2db.
>
> Hope somebody can help me with this.
>
> Palmer
>
> --
> You received this message because you are subscribed to the Google Groups "H2 
> Database" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/h2-database?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to