-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostFIDES.dbs
27 lines (27 loc) · 933 Bytes
/
postFIDES.dbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<data name="postFIDES" transports="http">
<config enableOData="false" id="fides">
<property name="carbon_datasource_name">FIDES</property>
</config>
<query id="query" useConfig="fides">
<sql>SELECT * FROM dbo.ScriptPersistentValue</sql>
<result element="list" rowName="osoba">
<element column="key" name="key" xsdType="string"/>
<element column="value" name="value" xsdType="string"/>
</result>
</query>
<query id="post" useConfig="fides">
<sql>UPDATE dbo.ScriptPersistentValue SET value = ?</sql>
<param name="value" sqlType="STRING"/>
</query>
<operation name="get">
<call-query href="query"/>
</operation>
<operation name="post">
<call-query href="post">
<with-param name="value" query-param="value"/>
</call-query>
</operation>
<resource method="GET" path="/">
<call-query href="query"/>
</resource>
</data>