JiriOndrusek commented on a change in pull request #3370:
URL: https://github.com/apache/camel-quarkus/pull/3370#discussion_r765938007
##########
File path: integration-tests/sql/README.adoc
##########
@@ -42,4 +42,32 @@ $Env:SQL_JDBC_USERNAME="#username"
$Env:SQL_JDBC_PASSWORD="#password"
```
-Oracle database could be used as external db. In that case use parameter
`-Dcq.sqlJdbcKind=oracle`.
\ No newline at end of file
+Oracle database could be used as external db. In that case use parameter
`-Dcq.sqlJdbcKind=oracle`.
+
+=== External Derby database
+
+To execute tests against external Derby database, stored procedure has to be
uploaded into the database classpath.
+Jar with stored procedure for the derby database is creaed by module
`sql-derby`.
+Jar could be uploaded via following commands through `ij`:
+```
+CALL
sqlj.install_jar('/PATH_TO_JAR/camel-quarkus-integration-test-sql-derby-stored-procedure-*.jar',
'AddNumsProcedure' , 0)
+
+CALL syscs_util.syscs_set_database_property('derby.database.classpath',
'APP.ADDNUMSPROCEDURE')
+```
Review comment:
I agree that linkto some doc would help us to avoid modyfication od this
readme. But on the other hand, the same code is used in docker initialization
in this change. So we would need to keep it updated either way. (But of course
in case that there is no better way of initialization of stored procedure in
derby, it is still worth of investigation)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]