Changes

Jump to navigation Jump to search
No change in size ,  22:06, 25 May 2012
no edit summary
| valign='top' | '''Summary'''
| This function executes a database command and returns the result as string. The parameter <code>$id</code> contains the session id returned by [[Client Module#client:connect|client:connect()]]. The <code>$command</code> represents the database command string, which will be executed by the server.
|-
|'''Errors'''
|'''[[#Errors|BXCL0003]]''' is raised if an I/O error occurs while transferring data from or to the server.<br/>'''[[#Errors|BXCL0004]]''' is raised if an error occurs while executing a command.
|-
| valign='top' | '''Examples'''
return client:execute($c, 'create database TEST')
</pre>
|-
|'''Errors'''
|'''[[#Errors|BXCL0003]]''' is raised if an I/O error occurs while transferring data from or to the server.<br/>'''[[#Errors|BXCL0004]]''' is raised if an error occurs while executing a command.
|}
| valign='top' | '''Summary'''
| This function evaluates a query and returns the result as sequence. The parameter <code>$id</code> contains the session id returned by [[Client Module#client:connect|client:connect()]], and <code>$query</code> represents the query string, which will be evaluated by the server.
|-
|'''Errors'''
|'''[[#Errors|BXCL0003]]''' is raised if an I/O error occurs while transferring data from or to the server.<br/>'''[[#Errors|BXCL0005]]''' is raised if an error occurs while evaluating a query.
|-
| valign='top' | '''Examples'''
return client:query($c1, $c || '* 2')
</pre>
|-
|'''Errors'''
|'''[[#Errors|BXCL0003]]''' is raised if an I/O error occurs while transferring data from or to the server.<br/>'''[[#Errors|BXCL0005]]''' is raised if an error occurs while evaluating a query.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu