-
Notifications
You must be signed in to change notification settings - Fork 18
/
float.xml
30 lines (29 loc) · 997 Bytes
/
float.xml
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
28
29
30
<?xml version="1.0"?>
<sqlgg>
<stmt name="create_transactions" sql="create table transactions (amount float not null, `date` datetime)" category="DDL" kind="create" target="transactions" cardinality="0">
<in/>
<out/>
</stmt>
<stmt name="insert" sql="insert into transactions values (@amount,@date)" category="DML" kind="insert" target="transactions" cardinality="0">
<in>
<value name="amount" type="Float"/>
<value name="date" type="Datetime" nullable="true"/>
</in>
<out/>
</stmt>
<stmt name="select" sql="select amount + 2.5 from transactions where `date` > @date and amount > @limit" category="DQL" kind="select" cardinality="n">
<in>
<value name="date" type="Datetime" nullable="true"/>
<value name="limit" type="Float"/>
</in>
<out>
<value name="_0" type="Float"/>
</out>
</stmt>
<table name="transactions">
<schema>
<value name="amount" type="Float"/>
<value name="date" type="Datetime" nullable="true"/>
</schema>
</table>
</sqlgg>