about changing database file-name suffix (update from year 2010)

22 views
Skip to first unread message

Paluee

unread,
Jun 2, 2019, 3:02:03 PM6/2/19
to H2 Database

Hi there,
Back in May-2010 i originally asked for this feature, below is my post from year 2010, and Thomas said that it will be put as one of the feature requests.
Now in the roadmap it says for version 1.4.x :Option to disable the file name suffix somehow.
I am wondering if this is the feature i requested back then.

My question now is, can one change the suffix easily in this current version of 1.4.? ...

See below.
Sincerely,
Paluee


======================================================

Version 1.4.x: Planned Changes

  • Change license to MPL 2.0.
  • Automatic migration from 1.3 databases to 1.4.
  • Option to disable the file name suffix somehow (issue 447).

==============================================================
Date : 6th-May-2010

https://groups.google.com/forum/#!searchin/h2-database/Paluee%7Csort:date/h2-database/Tpw8fc9sGBE/ojCqCowyeikJ



Thomas Mueller    
5/7/10
Hi,

I understand. I think by default databases should have a suffix
(currently it's .h2.db). I understand in some cases this should be a
different suffix. What about an escape mechanism? For example, if the
database ends with a slash, then the regular suffix is not used.
Examples:

jdbc:h2:~/data (will create a file named "data.h2.db")
jdbc:h2:~/data.db/ (will create a file named "data.db")
jdbc:h2:~/data/ (will create a file named "data")

Other ideas are welcome.

Currently the default suffix is ".h2.db". It would be better if the
suffix has only one dot by default. What about .h2db? I will add a
feature request. However, for backward compatibility, I don't plan to
change it in the near future.

So I will add two feature requests:

- Database file name suffix: a way to use no or a different suffix
(for example using a slash).
- Database file name suffix: should only have one dot by default. Example: .h2db

For me this is low priority. If you want to provide a patch you are welcome.

Regards,
Thomas
--------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages