db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Weerasiri (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4557) Make it possible to parameterize ij scripts.
Date Sun, 21 Feb 2010 22:25:28 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836464#action_12836464

Denis Weerasiri commented on DERBY-4557:

Hi Sylvain,
I'm still in the process of reading the code and doc. I'll try to come up with a POC for "Having
a way to propagate values from the calling context to an ij script. Using positional parameters
$1, $2, etc." , the use case you mentioned first.

> Make it possible to parameterize ij scripts.
> --------------------------------------------
>                 Key: DERBY-4557
>                 URL: https://issues.apache.org/jira/browse/DERBY-4557
>             Project: Derby
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Rick Hillegas
> It would be nice to be able to parameterize ij scripts. At a high level, this would be
akin to the $N parameters which you pass on the command line to Unix shell scripts. I think
it would be easiest to understand if parameter substitution happened before the script was
handed to the ij parser.
> It would be nice to write something like the following:
> connect 'jdbc:derby:$1;user=$2;password=$3';
> insert into $4( a ) values ( $5 );
> or something like this:
> connect 'jdbc:derby:${dbname};user=${user};password=${password}';
> insert into ${tableName} values ( ${intValue} );

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message