24 Jan 2005 10:20
SqlDataLoader
Carl <multivac <at> altern.org>
2005-01-24 09:20:14 GMT
2005-01-24 09:20:14 GMT
Hello, Please find as attachement a very simple SqlDataLoader. All the configuration still need to be written. I've used it for a simple use, by hardcoding the config data (hugly, but I was in hury). If it can benefit for anyone, and if somebody feel to write the configuration code, it would be niceThis code is totaly free of any right, you could use it as you want. To use it, you just need to write <#assign database = pp.loadData('SqlDataLoader') > and then, ${database.tableName} is a list with all rows of table "tableName" so you could write : <#list database.tableName as row> ${row.fieldName} </#list> to retrieve your data. Carl
import java.sql.Connection; import java.sql.DriverManager;(Continue reading)
This code is totaly free of any right, you could use it as you want.
To use it, you just need to write
<#assign database = pp.loadData('SqlDataLoader') >
and then,
${database.tableName} is a list with all rows of table "tableName"
so you could write :
<#list database.tableName as row>
${row.fieldName}
</#list>
to retrieve your data.
Carl
RSS Feed