Mercurial > dive4elements > river
annotate artifacts/doc/conf/artifact-db.xml @ 6087:47775e3a8cf6
Datacage: Introduced <dc:virtual-column name="colname" type="type" expr="XPath">
dc:virtual-column can be used to virtual add or replace a column named 'colname' to
the current result set. The value is determined by evaluating "XPath", the type is
determined by "type" (possible values: number, bool, node, nodeset, string. defaults to string).
Usage:
<dc:virtual-column name="c" type="number" expr="$a+$b">
<dc:for-each>
<dc:message>{$a} + {$b} = {$c}</dc:message>
</dc:for-each>
</dc:virtual-column>
table
a | b
--+--
1 | 2
3 | 4
will result in:
1 + 2 = 3
3 + 4 = 7
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 24 May 2013 12:19:25 +0200 |
parents | 5aa05a7a34b7 |
children | 308a0d822d18 |
rev | line source |
---|---|
3093
b0f59d42ae4f
De-centralized database configuration.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8" ?> |
b0f59d42ae4f
De-centralized database configuration.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
2 <database> |
3219
fa30e6322ef3
Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3093
diff
changeset
|
3 <!-- This Section configures the Settings for connecting to the |
3093
b0f59d42ae4f
De-centralized database configuration.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
4 Artifact-Database instance. e.g. SQLite --> |
b0f59d42ae4f
De-centralized database configuration.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
5 <user>SA</user> |
b0f59d42ae4f
De-centralized database configuration.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
6 <password></password> |
b0f59d42ae4f
De-centralized database configuration.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
7 <!-- For use with a postgresql database use the appropriate driver--> |
b0f59d42ae4f
De-centralized database configuration.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
8 <!--driver>org.postgresql.Driver</driver--> |
5249
9c4e2192810c
Use default paths which are the same paths used when
Andre Heinecke <aheinecke@intevation.de>
parents:
3219
diff
changeset
|
9 <url>jdbc:h2:${artifacts.config.dir}/../artifactsdb/artifacts</url> |
3093
b0f59d42ae4f
De-centralized database configuration.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
10 </database> |