From 95bece38ac5c943657ad959cad148c84a91d45a4 Mon Sep 17 00:00:00 2001 From: Tamas Bunth Date: Mon, 8 Jan 2018 15:57:39 +0100 Subject: Add HSQLDB schema import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It can be enabled by initializing the DBACCESS_HSQL_MIGRATION variable. Create new library "dbahsql" which is responsible for migrating the embedded hsql database to any database covered by sdbc. The hsqldb schema is stored in a file named "script" in form of SQL statements. The SQL statements used by DBMS's differ mostly by the defined types. Because of that, only the create statements need to be parsed, alter statements will work (with a little luck) without actually modifying it. User / security settings which can occur in the script file (e.g. GRANT statements) are dropped. Statements starting with SET are also dropped (they are hsql specific stuff) Change-Id: I6a22942e8a9a76765f80e50f0ad68f4d72e1ff9d Reviewed-on: https://gerrit.libreoffice.org/48260 Tested-by: Jenkins Reviewed-by: Tamás Bunth --- dbaccess/Module_dbaccess.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'dbaccess/Module_dbaccess.mk') diff --git a/dbaccess/Module_dbaccess.mk b/dbaccess/Module_dbaccess.mk index 4a0a6d9bf9dc..9bc2253f7465 100644 --- a/dbaccess/Module_dbaccess.mk +++ b/dbaccess/Module_dbaccess.mk @@ -18,6 +18,7 @@ $(eval $(call gb_Module_add_targets,dbaccess,\ Library_dbmm \ Library_dbu \ Library_sdbt \ + Library_dbahsql \ UIConfig_dbaccess \ UIConfig_dbapp \ UIConfig_dbbrowser \ -- cgit