ServerProvider.renderOperation

Creates an SQL statement (possibly using some specific extensions of the DBMS) corresponding to the op operation. Note that the returned string may actually contain more than one SQL statement.

This function's purpose is mainly informative to get the actual SQL code which would be executed to perform the operation; to actually perform the operation, use gda.server_provider.ServerProvider.performOperation.

class ServerProvider
string
renderOperation

Parameters

cnc gda.connection.Connection

a #GdaConnection object which will be used to render the action, or null

op gda.server_operation.ServerOperation

a #GdaServerOperation object

Return Value

Type: string

a new string, or null if an error occurred or operation cannot be rendered as SQL.

Throws