Changes

Jump to navigation Jump to search
262 bytes removed ,  08:01, 5 June 2012
|-
| '''Summary'''
|This function establishes a connection to a relational database. As a result a connection handle is returned. The parameter {{Code|$url}} is the URL of the database and shall be of the form: {{Code|jdbc:<driver name>:[//<server>[/<database>]}}. If the parameters {{Code|$user}} and {{Code|$password}} are specified, they are used as credentials for connecting to the database. The parameter {{Code|$options}} parameter can be used to set connection options, e.g. auto-commit mode. It which can either be specified as:<br/>* {{Code|element(sql:options):}} as children of an {{Code|&lt;sql:options/&gt;}} must be used as root element, and the options are specified as child nodes, with the element name representing the key and the text node representing the valuee.g.:<br /pre class="brush:xml">/>{{Code|&lt;<sql:options&gt;> <br/>&nbsp;&nbsp;&lt;sql:autocommit&gt;value='true&lt;/sql:autocommit&gt;<br'/>&nbsp;&nbsp; ...<br/>&lt;/sql:options&gt;}}></pre>* [[Map Module|as map structure]]: , which contains all options can be directly represented as key/value pairs:<br /pre class="brush:xml"><code>Code|map { "autocommit" := "true", ... }</code><br/pre>
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu