Import emails from JDBC
# This file is the source for creating the datasource for the jdbcEmailImport bean # and its properties structure. # # Editing of connection info should be done in this file # # In addition the query is defined here. The datasource.emails-query MUST return the first name, # last name, and email in that order. # # The password are encrypted using Encr utility. Encr.bat and Encr.sh exist along the startup script for the server # # The jdbc.emails-imported property defines if emails have already been imported. If true # then no more emails will be imported. After initial import this property is automatically # set to "true". If more imports are done from a different datasource then this property will # need to be set back to "false" # # NOTE: The correct JDBC driver must be in the classpath for this to work. jdbc.driver.classname=org.postgresql.Driver jdbc.url=jdbc:postgresql://localhost:5432/emailgroups jdbc.username=pentaho_user jdbc.password=Encrypted 2be98afc86aa7f2e4bb18bd63c99dbdde jdbc.validation.query=SELECT 1 jdbc.max.idle=4 jdbc.min.idle=0 jdbc.emails-query=SELECT fname, lname, email FROM public.emails ORDER BY email ASC # The above query is an example the actual query will be dependent on the source RDBMS. # Field names are table dependent on the table columns that are being imported # the ORDER BY clause isn't required. The SELECT statement is very arbitrary but # the result set MUST return IN THIS ORDER -> firstName, lastName, email
Last updated
Was this helpful?

