BORG Database Types - H2, HSQL, Sqlite?, Mysql? #154
mikeberger
started this conversation in
General
Replies: 1 comment 4 replies
-
maybe we can add a new checkbox H2(v2+) ? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sqlite
BORG 1.10 adds support for Sqlite. To use an Sqlite database, select the Generic JDBC option on the database options tab and enter an sqlite jdbc url, which has the form: jdbc:sqlite:path_to_file. For example: jdbc:sqlite:/C:/Users/i_fle/OneDrive/borg/borg_sqlite.db
I've personally switched from H2 to Sqlite because I like the Sqlite DB Browser.
H2
H2 is the default database for BORG and this is fine for 99% of users. One minor concern is that updating to the latest version of H2 (2.0) requires the DB to be deleted and recreated. Since I can't force all BORG users to Export/Import their data, BORG will forever stay on the prior version of H2 (1.4).
HSQL
BORG used HSQL as the default before H2. I do not recommend using it for new DBs.
MYSQL
BORG 1.10 removes the MySQL-specific options in the UI. This is just to make sure that new users don't try MySQL. Existing MySQL users will just see their Mysql URL show up under the Generic JDBC options tab. All of the other Mysql-specific code remains in BORG, but I personally haven't used MySQL in years. It is no longer tested. Also, changes in Java have made it more difficult to use the MySQL JDBC driver.
The Sqlite, H2, and HSQL JDBC drivers are packaged with BORG. The MySQL driver is not.
Beta Was this translation helpful? Give feedback.
All reactions