I’m a beginner with LibreOffice BASE but not a newcomer; I have years of experience in several SQL dialects and worked for a time as MSAccess application developer. But I have found my progress with BASE to be confusing with a lot of trial and error.
I read in the documentation (and I apologize for any misunderstanding) that BASE uses HyperSQL for its “native” database storage. HSQL is described as a collection of JAVA routines dedicated to database manipulation. BASE uses this to produce an .odb file much the same as an ISAM database, expanding into memory on opening and compacting back to disk on closing.
To familiarize myself I created one such HSQL database recently. My objective was to try to “import” schema, data or both from another (MSAccess .mdb) existing database. Having exported the .mdb’s table schema using mdb-tools’ utility mdb-schema I was able to recreate the two .mdb tables in the .odb file using the SQL facility under the Tools menu. I had to finesse the syntax but I succeeded eventually in constructing the proper DDL, partly thanks to the table in Appendix B of the BASE User Guide.
Now I have two empty tables in my .odb to which I would like to import (transport; insert into) existing data, but some of the data presents challenges: Some of the .mdb fields were defined as “memo”, to use the old term, which equates to “text” or “varchar” in other DDL schemes. The problem is that free-form entries in these fields employed numerous CR/LF entries as part of the field’s text, but this combination is usually the default marker for end-of-record. I exported these records using “|” as the field separator and “~” as the record separator.
Now I have to find an import utility that will allow me to 1) perform a bulk import from an external source while 2) allowing me to specify alternate field and record terminators. Mariadb has this option, but this is not a Mariadb DB. The HSQL library itself does not offer such an option, so far as I am able to determine from documentation. There is however a JAR file, SqlTool, that claims this ability. Reading that documentation, and the help files in the .jar itself, I am so far out of my knowledge that I literally have no idea how to proceed.
So here I am, asking for advice on how to proceed. I realize there are other options, some of which I have already explored and completed. My question is specific to the BASE / HSQL combination.
Sorry this is so windy… Thank you for your replies.
-CH-