Skip to content

Instantly share code, notes, and snippets.

@kaisteel
Last active March 14, 2017 18:47
Show Gist options
  • Save kaisteel/72130305c60cd826e3dadc0278cd3749 to your computer and use it in GitHub Desktop.
Save kaisteel/72130305c60cd826e3dadc0278cd3749 to your computer and use it in GitHub Desktop.
Metamug Resource file
<?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>
@d3ep4k
Copy link

d3ep4k commented Feb 7, 2017

Very nice. This will allow binding for individual SQL statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment