HsqlDB Embedded come back

Discussions about using 3rd party extension with OpenOffice.org
Post Reply
psilocybe
Posts: 108
Joined: Thu Jun 15, 2017 5:33 am

HsqlDB Embedded come back

Post by psilocybe »

Hi all and Happy New Year,

I announce the come back of HsqlDB in integrated mode in LibreOffice / OpenOffice.

It's even more than a come back since now we can manage:
  • the rights of users and roles (groups).
  • Schemas.
  • lots of other things to discover.
This with the version of HsqlDB of your choice and all in a single odb file.

All this thanks to two links:
HsqlDBembeddedOOo
jdbcDriverOOo
LibreOffice 5.3.3.2 - Lubuntu 16.10 - LxQt 0.11.0.3
User avatar
charlie.it
Volunteer
Posts: 417
Joined: Wed Aug 21, 2013 2:12 pm
Location: Italy

Re: HsqlDB Embedded come back

Post by charlie.it »

Interesting ... but it doesn't work in Mac environment. The Driver is not recognized, both in OpenOffice and in LibreOffice.
charlie
Italian AOO Admin
macOS 14 Sonoma M1: Open Office 4.1.15 - LibreOffice 7.5.7.1

http://www.charlieopenoffice.altervista.org
psilocybe
Posts: 108
Joined: Thu Jun 15, 2017 5:33 am

Re: HsqlDB Embedded come back

Post by psilocybe »

it's disappointing, unfortunately it's one of the few platforms that I can't test.

Can you give me the OS version?
Are you sure you have Java 11 installed?
LibreOffice 5.3.3.2 - Lubuntu 16.10 - LxQt 0.11.0.3
User avatar
charlie.it
Volunteer
Posts: 417
Joined: Wed Aug 21, 2013 2:12 pm
Location: Italy

Re: HsqlDB Embedded come back

Post by charlie.it »

I forgot to do that…
Now however Java 11.0.16.1 is installed correctly, but in LibreOffice 7.2.6.2 I get this error installing the Driver extension:
Schermata 2023-01-13 alle 18.32.18.png
Schermata 2023-01-13 alle 18.32.18.png (25.5 KiB) Viewed 4292 times
My operating system is that of my Firma, rather old ...
charlie
Italian AOO Admin
macOS 14 Sonoma M1: Open Office 4.1.15 - LibreOffice 7.5.7.1

http://www.charlieopenoffice.altervista.org
User avatar
charlie.it
Volunteer
Posts: 417
Joined: Wed Aug 21, 2013 2:12 pm
Location: Italy

Re: HsqlDB Embedded come back

Post by charlie.it »

With OpenOffice 4.1.13, something happens that I don't understand. If I follow the "Create new database" procedure I get the error:

Code: Select all

 The connection to the data source "New database" could not be established. Url: 'sbdc:embedded: hsqldb' cannot be loaded. Please check syntax
But if instead I choose

Code: Select all

Connect to an existing database > HsqlDB Driver
and then compile

Code: Select all

datasorce URL = //Users/mac/Desktop
and then

Code: Select all

User name = mac > Finish
a database opens with already filled tables. Where they come from?
Attachments
database screenshot
database screenshot
Schermata 2023-01-14 alle 11.32.07.png (116.93 KiB) Viewed 4239 times
charlie
Italian AOO Admin
macOS 14 Sonoma M1: Open Office 4.1.15 - LibreOffice 7.5.7.1

http://www.charlieopenoffice.altervista.org
psilocybe
Posts: 108
Joined: Thu Jun 15, 2017 5:33 am

Re: HsqlDB Embedded come back

Post by psilocybe »

It seems that with OpenOffice the HsqlDBembeddedOOo extension is not usable as is.
I need to do more investigation to find out where it came from.
charlie.it wrote: Sat Jan 14, 2023 12:39 pm a database opens with already filled tables. Where they come from?
It looks like a new database called: New database4.odb has been created with the driver HsqlDB Driver provided by the jdbcDriverOOo extension.
The location of this database is: /Users/mac/Desktop
The user who is connected is: mac (it is probably the account that was provided during the first connection and creation of the database)

Tables already populated are HsqlDB system tables, jdbcDriverOOo now showing all tables including system tables, as they can be filtered in Base through the menu; Tools -> Table Filter
LibreOffice 5.3.3.2 - Lubuntu 16.10 - LxQt 0.11.0.3
psilocybe
Posts: 108
Joined: Thu Jun 15, 2017 5:33 am

Re: HsqlDB Embedded come back

Post by psilocybe »

The last update of HsqlDBembeddedOOo now allows the use of OpenOffice, with some limitations:
  • The OpenOffice API does not allow the update of the odb file when it is closed (unlike the LibreOffice API) so the database is kept in split mode.
  • This means that odb files are not portable like LibreOffice.
I will test on Mac as soon as the opportunity arises.
LibreOffice 5.3.3.2 - Lubuntu 16.10 - LxQt 0.11.0.3
User avatar
charlie.it
Volunteer
Posts: 417
Joined: Wed Aug 21, 2013 2:12 pm
Location: Italy

Re: HsqlDB Embedded come back

Post by charlie.it »

psilocybe wrote: Mon Jan 16, 2023 5:00 pm L'ultimo aggiornamento di HsqlDBembeddedOOo consente ora l'utilizzo di OpenOffice
I confirm, it works also in macOS.
psilocybe wrote: Mon Jan 16, 2023 5:00 pm L'API di OpenOffice non consente l'aggiornamento del file odb quando è chiuso (a differenza dell'API di LibreOffice) quindi il database viene mantenuto in modalità divisa.

Ciò significa che i file odb non sono portabili come LibreOffice.
I didn't quite understand this part but, really, I still don't understand what it consists HsqlDB embedded :oops:
Where can i find documentation?
charlie
Italian AOO Admin
macOS 14 Sonoma M1: Open Office 4.1.15 - LibreOffice 7.5.7.1

http://www.charlieopenoffice.altervista.org
psilocybe
Posts: 108
Joined: Thu Jun 15, 2017 5:33 am

Re: HsqlDB Embedded come back

Post by psilocybe »

charlie.it wrote: Mon Jan 16, 2023 6:34 pm I didn't quite understand this part but, really, I still don't understand what it consists HsqlDB embedded :oops:
Where can i find documentation?
I don't know where to find documentation but to make it simple, we can say:
  • In a normal database like jdbcDriverOOo all the files composing the database are in the directory corresponding to the path provided during the connection.
  • In an embedded database like HsqlDBembeddedOOo all the files composing the database are in the odb file (in reality they are extracted from the odb file when connecting to the database then reintegrated when closing the odb file). This makes it easy to transport the database since everything is contained in a single odb file (in fact it's a zip file).
LibreOffice 5.3.3.2 - Lubuntu 16.10 - LxQt 0.11.0.3
User avatar
charlie.it
Volunteer
Posts: 417
Joined: Wed Aug 21, 2013 2:12 pm
Location: Italy

Re: HsqlDB Embedded come back

Post by charlie.it »

psilocybe wrote: Tue Jan 17, 2023 4:11 am In un database embedded come HsqlDBembeddedOOo tutti i file che compongono il database sono nel file odb (in realtà vengono estratti dal file odb durante la connessione al database e poi reintegrati alla chiusura del file odb). Ciò facilita il trasporto del database poiché tutto è contenuto in un unico file odb (in realtà è un file zip).
But this is already the case for normal embedded HSQL 1.8. Or am I wrong?
charlie
Italian AOO Admin
macOS 14 Sonoma M1: Open Office 4.1.15 - LibreOffice 7.5.7.1

http://www.charlieopenoffice.altervista.org
psilocybe
Posts: 108
Joined: Thu Jun 15, 2017 5:33 am

Re: HsqlDB Embedded come back

Post by psilocybe »

charlie.it wrote: Tue Jan 17, 2023 11:00 am But this is already the case for normal embedded HSQL 1.8. Or am I wrong?
You are right. But embedded HSQL 1.8. suffers from the limitations:
  • LibreOffice roadmap is to migrate HsqlDB Embedded 1.8 to Firebird.
  • HsqlDB version 1.8 is now over 10 years old.
HsqlDBembeddedOOo attempts to overcome these limitations.
LibreOffice 5.3.3.2 - Lubuntu 16.10 - LxQt 0.11.0.3
psilocybe
Posts: 108
Joined: Thu Jun 15, 2017 5:33 am

Re: HsqlDB Embedded come back

Post by psilocybe »

The last update of HsqlDBembeddedOOo now allows the full support of OpenOffice...
Now all schemas are displayed by default (including INFORMATION_SCHEMA and SYSTEM_LOBS). They can be filtered in Base through the menu: Tools -> Table Filter

In the latest update, the driver is a true singleton as the LibreOffice/OpenOffice UNO API demands and this makes its second load almost instantaneous...
LibreOffice 5.3.3.2 - Lubuntu 16.10 - LxQt 0.11.0.3
Post Reply