Sha256: 28505114e2350f27a16b329bdc2465a19886eaeb13eb74bfc20aeae8016a6d74

Contents?: true

Size: 809 Bytes

Versions: 3

Compression:

Stored size: 809 Bytes

Contents

<h1>
	<%= object[:external_language]%> Function - <code><%= params["schema"] %>.<%= params["name"] %></code>
</h1>

<% if object[:comment] %>
	<h2>Description</h2>
	<p><%= object[:comment] %></p>
<% end %>

<%= render_markdown "schema/#{params["schema"]}/functions/#{params["name"]}.md" %>

<h2>Function Arguments</h2>
<table class="ui compact fixed celled table">
	<thead>
		<th>Argument Name</th>
		<th>Data Type</th>
		<th>Argument Mode</th>
	</thead>
	<tbody>
		<% object[:arguments].each do |row| %>
		<tr>
			<td><%= row["name"] %></td>
			<td><%= row["type"] %></td>
			<td><%= row["mode"] %></td>
		</tr>
		<% end %>
	</tbody>
</table>

<% if object[:function_definition] %>
	<h2>Function Definition</h2>
	<pre class="ui segment sql"><%= CGI.escapeHTML object[:function_definition] %></pre>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg-doc-0.0.4 views/objects/function.erb
pg-doc-0.0.3 views/objects/function.erb
pg-doc-0.0.2 views/objects/function.erb