forked from amazingfate/loongoffice
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 <ci@libreoffice.org> Reviewed-by: Tamás Bunth <btomi96@gmail.com>
88 lines
2.1 KiB
Makefile
88 lines
2.1 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_Module_Module,dbaccess))
|
|
|
|
ifneq (,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
|
|
|
|
$(eval $(call gb_Module_add_targets,dbaccess,\
|
|
$(if $(filter WNT,$(OS)),Executable_odbcconfig) \
|
|
Library_dba \
|
|
Library_dbaxml \
|
|
Library_dbmm \
|
|
Library_dbu \
|
|
Library_sdbt \
|
|
Library_dbahsql \
|
|
UIConfig_dbaccess \
|
|
UIConfig_dbapp \
|
|
UIConfig_dbbrowser \
|
|
UIConfig_dbquery \
|
|
UIConfig_dbrelation \
|
|
UIConfig_dbtable \
|
|
UIConfig_dbtdata \
|
|
))
|
|
|
|
$(eval $(call gb_Module_add_l10n_targets,dbaccess,\
|
|
AllLangMoTarget_dba \
|
|
))
|
|
|
|
ifneq ($(OS),IOS)
|
|
ifeq ($(ENABLE_FIREBIRD_SDBC),TRUE)
|
|
$(eval $(call gb_Module_add_check_targets,dbaccess,\
|
|
CppunitTest_dbaccess_firebird_test \
|
|
))
|
|
endif
|
|
|
|
$(eval $(call gb_Module_add_check_targets,dbaccess,\
|
|
CppunitTest_dbaccess_dialog_save \
|
|
CppunitTest_dbaccess_empty_stdlib_save \
|
|
CppunitTest_dbaccess_nolib_save \
|
|
CppunitTest_dbaccess_macros_test \
|
|
))
|
|
|
|
ifeq ($(ENABLE_JAVA),TRUE)
|
|
$(eval $(call gb_Module_add_check_targets,dbaccess,\
|
|
CppunitTest_dbaccess_hsqldb_test \
|
|
CppunitTest_dbaccess_RowSetClones \
|
|
))
|
|
endif
|
|
|
|
# This runs a suite of performance tests on embedded firebird and HSQLDB.
|
|
# Instructions on running the test can be found in qa/unit/embeddedb_performancetest
|
|
ifeq ($(ENABLE_FIREBIRD_SDBC),TRUE)
|
|
ifeq ($(ENABLE_JAVA),TRUE)
|
|
$(eval $(call gb_Module_add_check_targets,dbaccess,\
|
|
CppunitTest_dbaccess_embeddeddb_performancetest \
|
|
))
|
|
endif
|
|
endif
|
|
|
|
$(eval $(call gb_Module_add_subsequentcheck_targets,dbaccess,\
|
|
JunitTest_dbaccess_complex \
|
|
JunitTest_dbaccess_unoapi \
|
|
))
|
|
|
|
ifneq ($(DISABLE_PYTHON),TRUE)
|
|
ifneq ($(ENABLE_JAVA),)
|
|
$(eval $(call gb_Module_add_subsequentcheck_targets,dbaccess,\
|
|
PythonTest_dbaccess_python \
|
|
))
|
|
endif
|
|
endif
|
|
|
|
# screenshots
|
|
$(eval $(call gb_Module_add_screenshot_targets,dbaccess,\
|
|
CppunitTest_dbaccess_dialogs_test \
|
|
))
|
|
|
|
endif
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|