RandomSec/extensions/database
Antoine Beaubien 356c7636d8
Only show the database login fields when necessary (#2615)
* DB login fields visibility controled by CSS

The database login field’s visibility is now controled by CSS styling.

* Change field name from Database to Database file.

Change field name from Database to Database file.

* Use full db name as CSS classes

Use full db name instead of diminutives for the CSS classes.

* Added translation to placeholders

Added translation to the Input placeholders.

* Undo a change, remerge Database field & File

remerge Database field and DatabaseFile Field like before.

* Created DatabaseSourceUI._updateDatabaseType(dbType)

Created Refine.DatabaseSourceUI.prototype._updateDatabaseType(databaseType)

* Make MySQL the default database

<option value="mysql" selected="selected"">MySQL</option>

* Update database-import-form.html

Fixed typo. (<option value="mysql" selected="selected">MySQL</option>)

* New default connection name value

New default connection name value, translation of it, changing cssClassName from options to dbtype-options, adding the prefix "dbt-" to the db types and fix the changing of placeholder databaseName/databaseFileName when neccessary.

* Fix issue with « saved connections »

Fix issue with « saved connections » and added 2 defaults values for dbHost and dbType.

* Default DB back to MySQL.

<option value="mysql" selected="selected">MySQL</option>

* Update extensions/database/module/langs/translation-en.json

Co-authored-by: Thad Guidry <thadguidry@gmail.com>

* Better default with « mysql »

* Fix sqlite #databaseHost before calling self._updateDatabaseType()

Fix $( "#databaseHost" ).val(self._defaultDatabaseHost) to be set before calling self._updateDatabaseType(self._defaultDatabaseType) that may change it.

* Removed field name & fixed default connection name

Removed field name text since it's populated from i18n and fixed the default connection name so that it has no space in it.

* Little update to placeholder text

Co-authored-by: Thad Guidry <thadguidry@gmail.com>
2020-05-30 09:20:05 +01:00
..
licenses database extension with classpath fix 2018-01-13 20:24:56 -06:00
module Only show the database login fields when necessary (#2615) 2020-05-30 09:20:05 +01:00
src/com/google/refine/extension/database remove unused import Owasp Encoder (#2370) 2020-03-13 11:12:25 +00:00
tests Replaced some deprecated methods 2020-02-24 23:51:41 -06:00
.eclipse-pmd database extension with classpath fix 2018-01-13 20:24:56 -06:00
.eslintrc.json database extension with classpath fix 2018-01-13 20:24:56 -06:00
.travis.yml database extension with classpath fix 2018-01-13 20:24:56 -06:00
pom.xml Set version to 3.5-SNAPSHOT 2020-05-13 22:56:33 +02:00
README.md database extension with classpath fix 2018-01-13 20:24:56 -06:00

This project is an extension for OpenRefine that provides a way to import database data using JDBC.

INSTALL

  1. Before installing this extension download OpenRefine code from http://code.google.com/p/google-refine/source/checkout.

  2. Pull this extension's code into folder database under folder /extensions. For more information on how to write a OpenRefine extensions and where to put the files see http://code.google.com/p/google-refine/wiki/WriteAnExtension

The folder structure should resemble this: grefine-all/ ----------/extensions --------------/database ------------------/module ------------------/src ------------------build.xml ------------------README (this file)

  1. Update build.xml in folder /extensions with build and clean ant tasks for database:
<target name="clean">
    <echo message="cleaning extensions" />
    <ant dir="sample/" target="clean" />
    <ant dir="jython/" target="clean" />
    <ant dir="freebase/" target="clean" />
    <ant dir="gdata/" target="clean" />
    <ant dir="database/" target="clean" />
</target>
  1. If using Eclipse, make sure that you build project with ant