Last active
March 14, 2017 18:47
-
-
Save kaisteel/72130305c60cd826e3dadc0278cd3749 to your computer and use it in GitHub Desktop.
Metamug Resource file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Resource xmlns="http://xml.metamug.net/resource/1.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xml.metamug.net/resource/1.0 http://xml.metamug.net/schema/resource.xsd" | |
v="1.0"> | |
<Desc>This is public resource file for demonstration</Desc> | |
<Request method="GET"> | |
<Desc> | |
Add two positive numbers. Parameters $a and $b are checked to be numbers | |
before being processed by sql. | |
</Desc> | |
<Param name="a" type="number" max="1000" min="0" /> | |
<Param name="b" type="number" max="1000" min="0" /> | |
<Query requires="a,b"> select $a + $b as "sum" </Query> | |
</Request> | |
</Resource> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice. This will allow binding for individual SQL statements.