Skip to content
Snippets Groups Projects
Commit 8809c705 authored by npedot's avatar npedot
Browse files

adds print record db separator

parent 8cc0a2b7
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ class QueryJdbcAdapter {
val metaData = resultSet.metaData
val columnCount = metaData.columnCount
while( resultSet.next()) {
result += "-----------------------------------------------------"
for (i in 1..columnCount) {
if (i >1 ) print(",")
//print("${resultSet.getString(i)} ${metaData.getColumnName(i)}")
......
......@@ -16,8 +16,8 @@ class SakilaMetaTI {
val name = "sakila-source"
val driver = "org.postgresql.Driver"
val path = "jdbc:postgresql://localhost:5432/sakila"
val user = "sammy"
val pass = "pass"
val user = System.getenv()["sakila_user"] ?: ""
val pass = System.getenv()["sakila_pass"] ?: ""
val sakilaSource = DataSource(type,name,driver,path,user,pass)
// when
val result = MetaSchemaReadUseCase().doit(sakilaSource,"read-meta-schema sakila-source", MetaSchemaJdbcAdapter(), XMLSerializerJacksonAdapter())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment