RandomSec/extensions/database/src/com/google/refine/extension/database
Tom Morris 83ed9ffdaf
Refactor importer APIs - Fixes #2963 (#2978)
* Make sure data directory is directory, not a file

* Add a test for zip archive import

Also tests the saving of the archive file name and source filename

* Add TODOs - no functional changes

* Cosmetic cleanups

* Revert importer API changes for archive file name parameter

Fixes #2963
- restore binary compatibility to the API
- hoist the handling of both fileSource and archiveFileName from
TabularImportingParserBase and TreeImportingParserBase to
ImportingParserBase so that there's only one copy. These 3 classes are
all part of the internal implementation, so there should be no
compatibility issue.

* Revert weird flow of control for import options metadata

This reverts the very convoluted control flow that was introduced
when adding the input options to the project metadata. Instead
the metadata is all handled in the importer framework rather than
having to change APIs are have individual importers worry about
it.

The feature never had test coverage, so that is still to be added.

* Add test for import options in project metadata & fix bug

Fixes bug where same options object was being reused and overwritten,
so all copies in the list ended up the same.
2020-07-23 18:36:14 +02:00
..
cmd remove unused import Owasp Encoder (#2370) 2020-03-13 11:12:25 +00:00
mariadb fix issue #1819 2018-11-25 16:25:51 -05:00
model database extension with classpath fix 2018-01-13 20:24:56 -06:00
mysql Bump mysql-connector-java from 5.1.46 to 8.0.20 (#2726) 2020-06-16 15:05:20 +02:00
pgsql fix issue #1819 2018-11-25 16:25:51 -05:00
sqlite Added SQLite support 2020-02-22 21:53:12 -06:00
DatabaseColumnType.java database extension with classpath fix 2018-01-13 20:24:56 -06:00
DatabaseConfiguration.java database extension with classpath fix 2018-01-13 20:24:56 -06:00
DatabaseImportController.java Refactor importer APIs - Fixes #2963 (#2978) 2020-07-23 18:36:14 +02:00
DatabaseModuleImpl.java Database extension logging cleanup 2018-12-09 11:15:04 +09:00
DatabaseService.java Added SQLite support 2020-02-22 21:53:12 -06:00
DatabaseServiceException.java database extension with classpath fix 2018-01-13 20:24:56 -06:00
DatabaseUtils.java input validation for database connection data 2019-09-08 23:22:22 -05:00
DBQueryResultImportReader.java database extension with classpath fix 2018-01-13 20:24:56 -06:00
DBQueryResultPreviewReader.java database extension with classpath fix 2018-01-13 20:24:56 -06:00
SavedConnectionContainer.java database extension with classpath fix 2018-01-13 20:24:56 -06:00
SimpleTextEncryptor.java database extension with classpath fix 2018-01-13 20:24:56 -06:00
SQLType.java database extension with classpath fix 2018-01-13 20:24:56 -06:00