Skip to content

Commit 7f4e8c0

Browse files
committed
Update formula and view pages
1 parent d76ef99 commit 7f4e8c0

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

‎docs/mapping/extensions/view.html‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -255,24 +255,24 @@ <h2 id="extra-ddl">Extra DDL to define the view</h2>
255255
Ebean's own migration runner) will (re)run whenever the script content changes.
256256
</p>
257257

258-
<pre type="xml">
259-
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
260-
&lt;extra-ddl xmlns="http://ebean-orm.github.io/xml/ns/extraddl"&gt;
258+
<div class="syntax xml"><div class="highlight"><pre><span></span><span class="cp">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;</span>
259+
<span class="nt">&lt;extra-ddl</span> <span class="na">xmlns=</span><span class="s">&quot;http://ebean-orm.github.io/xml/ns/extraddl&quot;</span><span class="nt">&gt;</span>
261260

262-
&lt;ddl-script name="order views" platforms="h2" drop="true"&gt;
263-
drop view order_agg_vw if exists;
264-
&lt;/ddl-script&gt;
261+
<span class="nt">&lt;ddl-script</span> <span class="na">name=</span><span class="s">&quot;order views&quot;</span> <span class="na">platforms=</span><span class="s">&quot;h2&quot;</span> <span class="na">drop=</span><span class="s">&quot;true&quot;</span><span class="nt">&gt;</span>
262+
drop view order_agg_vw if exists;
263+
<span class="nt">&lt;/ddl-script&gt;</span>
265264

266-
&lt;ddl-script name="order views" platforms="postgres,oracle"&gt;
267-
create or replace view order_agg_vw as
268-
select d.order_id, sum(d.order_qty * d.unit_price) as order_total,
269-
sum(d.ship_qty * d.unit_price) as ship_total
270-
from o_order_detail d
271-
group by d.order_id
272-
&lt;/ddl-script&gt;
265+
<span class="nt">&lt;ddl-script</span> <span class="na">name=</span><span class="s">&quot;order views&quot;</span> <span class="na">platforms=</span><span class="s">&quot;postgres,oracle&quot;</span><span class="nt">&gt;</span>
266+
create or replace view order_agg_vw as
267+
select d.order_id, sum(d.order_qty * d.unit_price) as order_total,
268+
sum(d.ship_qty * d.unit_price) as ship_total
269+
from o_order_detail d
270+
group by d.order_id
271+
<span class="nt">&lt;/ddl-script&gt;</span>
273272

274-
&lt;/extra-ddl&gt;
275-
</pre>
273+
<span class="nt">&lt;/extra-ddl&gt;</span>
274+
</pre></div>
275+
</div>
276276

277277

278278

0 commit comments

Comments
 (0)